mirror of
https://github.com/ChocoTaco1/docker-tribesnext-server.git
synced 2026-02-13 03:33:34 +00:00
Native linux merge
This commit is contained in:
parent
cb2a715e07
commit
9cf759d0ac
13 changed files with 132 additions and 271 deletions
19
_scripts/gen_autoexec_index
Normal file
19
_scripts/gen_autoexec_index
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
# -- Generate an alphabetized autoexec index file because we can't trust the load order
|
||||
SCRIPTS_DIR=$1
|
||||
INDEX_FILE="$SCRIPTS_DIR"/autoexec/AutoExecIndex.cs
|
||||
|
||||
mkdir -p "$SCRIPTS_DIR"/library
|
||||
mv -v "$SCRIPTS_DIR"/autoexec/*.cs "$SCRIPTS_DIR"/library/.
|
||||
|
||||
scripts=(
|
||||
"$SCRIPTS_DIR"/library/*.cs
|
||||
)
|
||||
|
||||
for i in "${scripts[@]##*/}"
|
||||
do
|
||||
echo "exec(\"scripts/library/${i}\");" >> $INDEX_FILE
|
||||
done
|
||||
|
||||
cat $INDEX_FILE
|
||||
Loading…
Add table
Add a link
Reference in a new issue