Skip to content

Instantly share code, notes, and snippets.

@pelya
Created October 23, 2016 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pelya/9a4861955c05466ff8f006c9ed8526f1 to your computer and use it in GitHub Desktop.
Save pelya/9a4861955c05466ff8f006c9ed8526f1 to your computer and use it in GitHub Desktop.
#!/bin/sh
nice git pull --commit --no-edit | grep 'Already up-to-date' || {
rm -f ninslash_srv
nice bam server_release
[ -e ninslash_srv ] && mv -f ninslash_srv ninslash_srv_run
}
CONFIG=/ctf-
while echo "$CONFIG" | grep '/ctf-' ; do
CONFIG=`find "example configs" -maxdepth 1 -mindepth 1 -type f -print0 \
| sort --zero-terminated --random-sort \
| sed 's/\d000.*//g'`
echo CONFIG $CONFIG
done
echo CONFIG $CONFIG
./ninslash_srv_run -f "$CONFIG"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment