[Tool] Bash script for installing/updating spritepacks #7838
cafuneandchill
started this conversation in
general - submod / external content
Replies: 4 comments
-
You could read CLI arguments instead of manual script editing, it'd be a lot more convenient for the end user. Like this: if [ "$#" -eq 0 ]; then
echo "Usage: $0 MAS_DIRECTORY" 1>&2
fi
MAS_DIRECTORY="$1" P.S. It is discouraged to use find "$new_sp_tmp" -mindepth 1 -maxdepth 1 -print0 | while read -r -d "" file; do
cp -ur "$file"/mod_assets "$MAS_INSTALL_DIR"/game
cp -ur "$file"/gifts "$MAS_INSTALL_DIR"
done |
Beta Was this translation helpful? Give feedback.
0 replies
-
Got it, will rewrite the script and edit the previous posted version. |
Beta Was this translation helpful? Give feedback.
0 replies
-
...what is this??? |
Beta Was this translation helpful? Give feedback.
0 replies
-
A script for installing spritepacks from a `spritepacks.zip` archive. If
you have Windows, you'll still have to do it manually, though.
пт, 2 июля 2021 г., 4:49 xXMidnight ***@***.***>:
… ...what is this???
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6701 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKMIUYQ3PVEJFJBDE5FHXNTTVULKJANCNFSM4TYTMOXA>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I wrote a Bash script that installs and updates spritepacks. Tested on Linux, works decently. Could possibly work on Mac, too? I'm not too proficient with Bash scripting, so there may be a better way to do this.
Beta Was this translation helpful? Give feedback.
All reactions