Browse Source

update condition (#141)

Closes #140
AbdBarho 4 years ago
parent
commit
463f332d14
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/AUTOMATIC1111/mount.sh

+ 1 - 1
services/AUTOMATIC1111/mount.sh

@@ -32,7 +32,7 @@ for to_path in "${!MOUNTS[@]}"; do
   set -Eeuo pipefail
   set -Eeuo pipefail
   from_path="${MOUNTS[${to_path}]}"
   from_path="${MOUNTS[${to_path}]}"
   rm -rf "${to_path}"
   rm -rf "${to_path}"
-  if [ -d "$from_path" ]; then
+  if [ ! -f "$from_path" ]; then
     mkdir -vp "$from_path"
     mkdir -vp "$from_path"
   fi
   fi
   mkdir -vp "$(dirname "${to_path}")"
   mkdir -vp "$(dirname "${to_path}")"