Skip to content
Snippets Groups Projects
Commit 464b84dc authored by Jérôme Charaoui's avatar Jérôme Charaoui
Browse files

Merge branch 'patch-1' into 'master'

Fixes for configuration files without suffix.

Closes #11287

See merge request riseuplabs/backupninja!16
parents cc289f4c 877b094d
No related branches found
No related tags found
No related merge requests found
...@@ -588,9 +588,9 @@ for file in $files; do ...@@ -588,9 +588,9 @@ for file in $files; do
check_perms ${file%/*} # check containing dir check_perms ${file%/*} # check containing dir
check_perms $file check_perms $file
suffix="${file##*.}"
base=`basename $file` base=`basename $file`
if [ "${base:0:1}" == "0" -o "$suffix" == "disabled" ]; then suffix="${base##*.}"
if [ "${base:0:1}" == "0" -o "$suffix" == "disabled" -o "$suffix" == "$base" ]; then
info "Skipping $file" info "Skipping $file"
continue continue
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment