From 64ff4b5c7d0f9a790119303813a32977357f1118 Mon Sep 17 00:00:00 2001 From: Alex Macocian Date: Tue, 12 Nov 2024 19:18:41 +0100 Subject: [PATCH] Adjust copy-mods.sh to copy the contents.pak from mods --- copy-mods.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/copy-mods.sh b/copy-mods.sh index 7b2c7d4..32d6103 100644 --- a/copy-mods.sh +++ b/copy-mods.sh @@ -1,5 +1,12 @@ #!/bin/bash echo "Copying mods from /starbound/steamapps/workshop/content/211820/ to /starbound/mods/" -rsync -a --info=progress2 /starbound/steamapps/workshop/content/211820/ /starbound/mods/ +# Loop through each mod directory and copy the contents.pak file, renaming it to mod_id.pak +for mod_dir in /starbound/steamapps/workshop/content/211820/*; do + if [ -d "$mod_dir" ]; then + mod_id=$(basename "$mod_dir") + echo Installing $mod_id + rsync -a "$mod_dir/contents.pak" "/starbound/mods/${mod_id}.pak" + fi +done echo "Finished" \ No newline at end of file