This commit is contained in:
fapoverflow 2025-07-07 07:58:25 +02:00
parent 802d0bcd68
commit ab47d2c699
15 changed files with 435 additions and 65 deletions

View file

@ -1,5 +1,5 @@
#!/bin/bash
#set -x
set -Eeuo pipefail
# TODO: move all mkdir -p ?
@ -50,6 +50,7 @@ for to_path in "${!MOUNTS[@]}"; do
rm -rf "${to_path}"
if [ ! -f "$from_path" ]; then
mkdir -vp "$from_path"
# mkdir -vp "$from_path" || true
fi
mkdir -vp "$(dirname "${to_path}")"
ln -sT "${from_path}" "${to_path}"