Ignore files ending in ~

This commit is contained in:
Mark Janssen -- Sig-I/O Automatisering 2014-06-11 14:44:29 +02:00 committed by intrigeri
parent 4377caaf08
commit 21bcb7e6bd
2 changed files with 2 additions and 2 deletions

View File

@ -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!"

View File

@ -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"