From 2997b8098187a79fea9145dd003d4997b69adf62 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Tue, 11 Apr 2017 20:13:24 -0500 Subject: [PATCH] specify if remote --- bin/snap-sync | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/snap-sync b/bin/snap-sync index 2349c0c..4998b27 100755 --- a/bin/snap-sync +++ b/bin/snap-sync @@ -162,7 +162,11 @@ if [[ "$disk" == -1 ]]; then if [[ "$disk_count" == 0 && "$uuid_cmdline" != "none" ]]; then error "A device with UUID $uuid_cmdline was not found to be mounted, or it is not a BTRFS device." fi - printf "Select a mounted BTRFS device to backup to.\n" + if [[ -z $ssh ]]; then + printf "Select a mounted BTRFS device on your local machine to backup to.\n" + else + printf "Select a mounted BTRFS device on $remote to backup to.\n" + fi while [[ $disk -lt 0 || $disk -gt $i ]]; do for x in "${!TARGETS_ARRAY[@]}"; do printf "%4s) %s (%s)\n" "$((x+1))" "${UUIDS_ARRAY[$x]}" "${TARGETS_ARRAY[$x]}"