Commit 1a887b83 authored by Matthew Smith's avatar Matthew Smith
Browse files

fix bug in logic for empty directories

parent dc7add76
......@@ -403,7 +403,7 @@ for i in $include; do
# Escape spaces (backslashes should not have been in first place...)
str="${i// /\\\ }"
# Set not empty if any have files or directories
ls "${str}/*" > 2&>1 /dev/null ; [ $? -eq 0 ] || areincludesempty=false
ls "${str}/*" > 2&>1 /dev/null ; [ $? -eq 0 ] && areincludesempty=false
execstr="${execstr}--include '$str' "
done
# Don't backup a source that includes no files or folders
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment