Skip to content

Commit 463f332

Browse files
authored
update condition (#141)
Closes #140
1 parent 3682303 commit 463f332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/AUTOMATIC1111/mount.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ for to_path in "${!MOUNTS[@]}"; do
3232
set -Eeuo pipefail
3333
from_path="${MOUNTS[${to_path}]}"
3434
rm -rf "${to_path}"
35-
if [ -d "$from_path" ]; then
35+
if [ ! -f "$from_path" ]; then
3636
mkdir -vp "$from_path"
3737
fi
3838
mkdir -vp "$(dirname "${to_path}")"

0 commit comments

Comments
 (0)