]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - bin/srsync-incremental
use more set -eu
[config/dotfiles.git] / bin / srsync-incremental
index 7fe898aa5d058ff46ac7e03fc97e01f8f585f586..0ae1e56c208e562b839628862e11ab32bb2fcc19 100755 (executable)
@@ -21,7 +21,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-set -e
+set -eu
 
 if test "$#" -lt 2; then
     echo "Usage: $0 <backups-directory> <arguments to rsync>" >&2
@@ -31,7 +31,7 @@ if test "$#" -lt 2; then
 fi
 
 
-cd "$1" || exit 1
+cd "$1"
 shift
 
 # Get absolute path to last backup directory.