]> gitweb.fluxo.info Git - backupninja.git/commitdiff
Merge remote-tracking branch 'sarava/bug/3003'
authorintrigeri <intrigeri@boum.org>
Sat, 3 May 2014 13:24:08 +0000 (13:24 +0000)
committerintrigeri <intrigeri@boum.org>
Sat, 3 May 2014 13:24:08 +0000 (13:24 +0000)
Conflicts:
handlers/rsync.in

1  2 
handlers/rsync.in

index 13399c91cf14761f479ff237ab0ff4ac1a4507c4,81bd5b42f8070c17b3752ea36c5f5b1c7a8dcb55..d0c211ccb27f560b0459c678c804506cca288d46
@@@ -275,15 -277,13 +275,19 @@@ function eval_config 
      mv=move_files
    fi
  
 -  for path in $exclude; do
 -    excludes="$excludes --exclude=$path"
 +  set -o noglob
 +  SAVEIFS=$IFS
 +  IFS=$(echo -en "\n\b")
 +  for i in $exclude; do
 +     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 {