aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-02-27 17:17:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-04-07 17:45:27 -0300
commit7c70c834cca22ad6ce1f6b33ccdd507f31fbfdd2 (patch)
tree547f97e9407e7c8d84b559802b3f2b25b8e42836
parentc6418f2f6e90ea5ae4c3ce8348538e76f9f74390 (diff)
downloadbackupninja-7c70c834cca22ad6ce1f6b33ccdd507f31fbfdd2.tar.gz
backupninja-7c70c834cca22ad6ce1f6b33ccdd507f31fbfdd2.tar.bz2
Force rsync handler run bash at the remote destination (upstream #3003)
-rw-r--r--handlers/rsync.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/handlers/rsync.in b/handlers/rsync.in
index b2c4b59..4905ace 100644
--- a/handlers/rsync.in
+++ b/handlers/rsync.in
@@ -282,8 +282,9 @@ function eval_config {
str="${i//__star__/*}"
excludes="${excludes} --exclude='$str'"
done
- IFS=$SAVEIFS
- set +o noglob
+
+ # Make sure we'll run bash at the destination
+ ssh_cmd="$ssh_cmd /bin/bash"
}
function rotate_short {