Fixed mkdir syntax to be BSD / Mac compatible
This commit is contained in:
parent
eec2df90e3
commit
07f31e6b1e
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue