summaryrefslogtreecommitdiff
path: root/rsync_tmbackup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rsync_tmbackup.sh')
-rwxr-xr-xrsync_tmbackup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh
index 1335766..5755edb 100755
--- a/rsync_tmbackup.sh
+++ b/rsync_tmbackup.sh
@@ -235,11 +235,11 @@ fn_mkdir() {
# Removes a file or symlink - not for directories
fn_rm_file() {
- fn_run_cmd "rm -f -- '$1'"
+ fn_run_cmd "chmod u+w '$1'; rm -f -- '$1'"
}
fn_rm_dir() {
- fn_run_cmd "rm -rf -- '$1'"
+ fn_run_cmd "chmod u+w -R '$1'; rm -rf -- '$1'"
}
fn_touch() {