vault backup: 2025-07-21 19:17:56

This commit is contained in:
2025-07-21 19:17:56 +01:00
parent 28102efb79
commit 69822126b0
3 changed files with 33 additions and 7 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/bash
SOURCE_DIR=../../Modules/Bannerlord.Harmony/bin/Win64_Shipping_Client
LOG_FILE=symlinks-created.txt
> "$LOG_FILE" # Empty the log file
for file in "$SOURCE_DIR"/*; do
base=$(basename "$file")
if [ ! -e "$base" ]; then
ln -s "$file" .
echo "$base" >> "$LOG_FILE"
echo "Linked: $base"
else
if [ -L "$base" ]; then
echo "$base" >> "$LOG_FILE"
echo "Skipped (symlink already exists): $base"
else
echo "SHOULD NOT HAPPEN"
fi
fi
done
echo "Symlinking complete. Reversible via: xargs rm < $LOG_FILE"