Skip to content

Commit 206c5d8

Browse files
committed
Updated mkdir to use -p to be consistent with GHE*DIR and handle create dir failures
1 parent 81737a1 commit 206c5d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ghe-backup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ touch "incomplete"
6363
# Exit early if the snapshot filesystem doesn't support hard links, symlinks and
6464
# if rsync doesn't support hardlinking of dangling symlinks
6565
trap 'rm -rf src dest1 dest2' EXIT
66-
mkdir src
66+
mkdir -p src
6767
touch src/testfile
6868
if ! ln -s /data/does/not/exist/hooks/ src/ >/dev/null 2>&1; then
6969
echo "Error: the filesystem containing $GHE_DATA_DIR does not support symbolic links." 1>&2

0 commit comments

Comments
 (0)