From 9006146a59904487c53e4d3c13111c2a53b77499 Mon Sep 17 00:00:00 2001 From: Ikiru Yoshizaki <3856350+guitarrapc@users.noreply.github.com> Date: Wed, 14 Aug 2019 23:38:34 +0900 Subject: [PATCH] fix: use test + mkdir for strict dir check --- contrib/aws/cloudformation-ec2-efs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/aws/cloudformation-ec2-efs.yaml b/contrib/aws/cloudformation-ec2-efs.yaml index 781f3dd3c..2bb7d9fde 100644 --- a/contrib/aws/cloudformation-ec2-efs.yaml +++ b/contrib/aws/cloudformation-ec2-efs.yaml @@ -159,7 +159,7 @@ Resources: mount -a -t efs defaults # Create/update the config & password files. - mkdir "$BASE/conf" -p + [[ -d "$BASE/conf" ]] || mkdir "$BASE/conf" curl -o "$BASE/conf/htpasswd" "${VerdaccioHtpasswdUrl}" curl -o "$BASE/conf/config.yaml" "${VerdaccioConfigUrl}"