From ad80d194fd63fc327eb161236ee1750b76838d03 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sun, 28 May 2023 19:36:23 -0400 Subject: btrfs-scan: use default destination from file /etc/btrfs/destination.txt --- src/btrfs-scan | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/btrfs-scan b/src/btrfs-scan index ab9f771..85b1e63 100755 --- a/src/btrfs-scan +++ b/src/btrfs-scan @@ -142,7 +142,8 @@ do shift done -[ "$DESTINATION" ] +destination_file=/etc/btrfs/destination.txt +[ "$DESTINATION" ] || read DESTINATION <"$destination_file" destination_host=${DESTINATION%%:*} destination_basename=$(hostname) && [ "$destination_basename" ] || destination_basename=btrfs -- cgit v1.2.3