diff --git a/bin/helpers/functions.sh b/bin/helpers/functions.sh index 1d44100..418a979 100755 --- a/bin/helpers/functions.sh +++ b/bin/helpers/functions.sh @@ -226,6 +226,9 @@ check_or_make_symlink() { SOURCE="${SOURCE/#\~/$HOME}" TARGET="${TARGET/#\~/$HOME}" + # Ensure the parent directory of the target exists + mkdir -p "$(dirname "$TARGET")" + SOURCE=$(resolve_path "$SOURCE") TARGET=$(resolve_path "$TARGET")