update conditin

This commit is contained in:
AbdBarho 2022-10-15 08:07:43 +02:00
parent 3682303355
commit a02e7fcd1f

View file

@ -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}")"