Only make tmp dir if it doesn't exist #6

This commit is contained in:
will Farrell
2017-12-08 12:12:45 -07:00
committed by GitHub
parent f638dd81d2
commit 02d8cd0ae9
+1 -1
View File
@@ -6,7 +6,7 @@ TMP_DIR=/tmp/restart
if [ "$1" = 'autoheal' ] && [ -e ${DOCKER_SOCK} ]; then
mkdir $TMP_DIR
mkdir -p $TMP_DIR
# https://docs.docker.com/engine/api/v1.25/