diff options
author | Andrew Cady <d@jerkface.net> | 2023-05-30 19:05:40 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2023-05-30 19:05:40 -0400 |
commit | 817c33cb02a5c5f25b4a77e746d09e3fd6c0455b (patch) | |
tree | db0abe188a717d0176c1602e2ced33c6d90a491b | |
parent | 2b51c9e775b6f8c3a1c37bd78fa7c6e6cb575033 (diff) |
put compute paths back on path
-rwxr-xr-x | src/btrfs-scan | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/btrfs-scan b/src/btrfs-scan index 2e83f1a..9213dfc 100755 --- a/src/btrfs-scan +++ b/src/btrfs-scan | |||
@@ -27,7 +27,6 @@ fixup_path() | |||
27 | "$root"/* ) path_fixed=${path#$root} ;; | 27 | "$root"/* ) path_fixed=${path#$root} ;; |
28 | * ) return ;; | 28 | * ) return ;; |
29 | esac | 29 | esac |
30 | compute_paths | ||
31 | "$@" | 30 | "$@" |
32 | } | 31 | } |
33 | 32 | ||
@@ -76,6 +75,7 @@ compute_paths() | |||
76 | source_escaped=$(systemd-escape "$source") | 75 | source_escaped=$(systemd-escape "$source") |
77 | conf_dir=/etc/btrfs/remotes | 76 | conf_dir=/etc/btrfs/remotes |
78 | conf_name="$conf_dir"/$destination_host$source_escaped.json | 77 | conf_name="$conf_dir"/$destination_host$source_escaped.json |
78 | "$@" | ||
79 | } | 79 | } |
80 | 80 | ||
81 | mirror() | 81 | mirror() |
@@ -155,4 +155,4 @@ esac | |||
155 | 155 | ||
156 | ssh root@"$destination_host" true || read -p 'Could not log in. Continue? ' | 156 | ssh root@"$destination_host" true || read -p 'Could not log in. Continue? ' |
157 | 157 | ||
158 | with_subvolumes fixup_path filter_blacklist mirror | 158 | with_subvolumes fixup_path compute_paths filter_blacklist mirror |