mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-08 11:52:32 +01:00
Ignore files ending in ~
This commit is contained in:
parent
4377caaf08
commit
21bcb7e6bd
@ -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!"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user