From 21bcb7e6bd0a4b226e9932691736802189d33238 Mon Sep 17 00:00:00 2001 From: Mark Janssen -- Sig-I/O Automatisering Date: Wed, 11 Jun 2014 14:44:29 +0200 Subject: Ignore files ending in ~ --- src/backupninja.in | 2 +- src/ninjahelper.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/backupninja.in b/src/backupninja.in index 0901742..c3733cf 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -544,7 +544,7 @@ errormsg="" if [ "$singlerun" ]; then files=$singlerun else - files=`find $configdirectory -follow -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n` + files=`find $configdirectory -follow -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' ! -name '*~' | sort -n` if [ -z "$files" ]; then info "No backup actions configured in '$configdirectory', run ninjahelper!" diff --git a/src/ninjahelper.in b/src/ninjahelper.in index 2a7faa9..4b4dceb 100755 --- a/src/ninjahelper.in +++ b/src/ninjahelper.in @@ -240,7 +240,7 @@ while true; do menulist= action= let "i = 1" -for file in `find ${configdirectory} -follow -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`; do +for file in `find ${configdirectory} -follow -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' ! -name '*~' | sort -n`; do menulist="$menulist $i $file" actions[$i]=$file let "i += 1" -- cgit v1.2.3