]> gitweb.fluxo.info Git - backupninja.git/commitdiff
Ignore files ending in ~
authorMark Janssen -- Sig-I/O Automatisering <mark@sig-io.nl>
Wed, 11 Jun 2014 12:44:29 +0000 (14:44 +0200)
committerintrigeri <intrigeri@boum.org>
Sat, 14 Jun 2014 13:47:05 +0000 (13:47 +0000)
src/backupninja.in
src/ninjahelper.in

index 0901742df25eeb563366427d5a12bdc91803557f..c3733cfd233bb947cec2798efac123c67516f04e 100755 (executable)
@@ -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!"
index 2a7faa90c6f905b9a29e87c339d8fa88d84a408e..4b4dceb555659b26d3b693f3116c2db4f2699607 100755 (executable)
@@ -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"