From 463f332d14ffaead05c924cbb9543e3671ccb679 Mon Sep 17 00:00:00 2001 From: AbdBarho Date: Sat, 15 Oct 2022 08:08:36 +0200 Subject: [PATCH] update condition (#141) Closes #140 --- services/AUTOMATIC1111/mount.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/AUTOMATIC1111/mount.sh b/services/AUTOMATIC1111/mount.sh index e5c514e..f99c846 100755 --- a/services/AUTOMATIC1111/mount.sh +++ b/services/AUTOMATIC1111/mount.sh @@ -32,7 +32,7 @@ for to_path in "${!MOUNTS[@]}"; do set -Eeuo pipefail from_path="${MOUNTS[${to_path}]}" rm -rf "${to_path}" - if [ -d "$from_path" ]; then + if [ ! -f "$from_path" ]; then mkdir -vp "$from_path" fi mkdir -vp "$(dirname "${to_path}")"