Skip to content

Commit

Permalink
safer directory removal
Browse files Browse the repository at this point in the history
  • Loading branch information
husixu1 committed Jan 23, 2024
1 parent 336e750 commit 263a353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rsync-tmbackup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ rbkp.run_src() { local _rc="$1" && rbkp.__run "$1" SSH_SRC_DIR_PREFIX "${*:2}";
rbkp.abs_path() { rbkp.run "$1" "cd ${2@Q}; pwd"; }
rbkp.mkdir() { rbkp.run "$1" "mkdir -p -- ${2@Q}"; }
rbkp.rm_file() { rbkp.run "$1" "rm -f -- ${2@Q}"; }
rbkp.rm_dir() { rbkp.run "$1" "rm -rf -- ${2@Q}"; }
rbkp.rm_dir() { rbkp.run "$1" "rm --one-file-system -rf -- ${2@Q}"; }
rbkp.ln() { rbkp.run "$1" "ln -s -- ${2@Q} ${3@Q}"; }
rbkp.test_d() { rbkp.run "$1" "test -d ${2@Q}"; }
rbkp.test_f() { rbkp.run "$1" "test -f ${2@Q}"; }
Expand Down

0 comments on commit 263a353

Please sign in to comment.