diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/backupninja.in | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/src/backupninja.in b/src/backupninja.in index 57936da..16ac7a7 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -476,7 +476,11 @@ errormsg=""  if [ "$singlerun" ]; then  	files=$singlerun  else -	files=`find $configdirectory -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n` +	files=`find -L $configdirectory -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n` + +	if [ -z "$files" ]; then +		fatal "No backup actions configured in '$configdirectory', run ninjahelper!" +	fi  fi  for file in $files; do | 
