Fixed mkdir syntax to be BSD / Mac compatible

This commit is contained in:
deajan 2016-11-21 15:12:52 +01:00
parent eec2df90e3
commit 07f31e6b1e
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# If stopped while running, config file values might be wrong # If stopped while running, config file values might be wrong
# osync test suite 2016112102 # osync test suite 2016112103
# 4 tests: # 4 tests:
# quicklocal # quicklocal
@ -503,7 +503,7 @@ function test_softdeletion_cleanup () {
for file in "${files[@]}"; do for file in "${files[@]}"; do
# Create directories first if they do not exist (deletion dir is created by osync, backup dir is created by rsync only when needed) # Create directories first if they do not exist (deletion dir is created by osync, backup dir is created by rsync only when needed)
if [ ! -d "$(dirname $file)" ]; then if [ ! -d "$(dirname $file)" ]; then
mkdir --parents "$(dirname $file)" mkdir -p "$(dirname $file)"
fi fi
touch "$file.new" touch "$file.new"