diff options
| author | Martin Fischer <martin@push-f.com> | 2026-01-25 19:46:21 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-01-25 20:00:01 +0100 |
| commit | 075645b7dbebf565cf4cf8c269c760ceb2a27d5d (patch) | |
| tree | 4709b8abe5dfb9edb5a750f364a03ac7589efe1b | |
| parent | a35a553cbdab04a50b949b0c27c7e287de205fcf (diff) | |
fix(sreplace): add missing quotes
| -rwxr-xr-x | scripts/sreplace | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/sreplace b/scripts/sreplace index f90a4ae..3dee6ed 100755 --- a/scripts/sreplace +++ b/scripts/sreplace @@ -5,10 +5,10 @@ if [ "$#" -ne 3 ]; then echo "usage: $0 <local_dir> <ssh_dest> <remote_dir>" exit 1 fi -printf -v remote_dir %q $3 +printf -v remote_dir %q "$3" -cd $1 -tar cf - . | ssh $2 "set -xe +cd "$1" +tar cf - . | ssh "$2" "set -xe TEMP_DIR=\$(mktemp -d) cd \$TEMP_DIR tar xvf - |
