Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Run Wesnoth on a clean, throwaway config directory.
- WESNOTH_BIN_PATH=$1
- TEMP_CONFIG_DIR=`mktemp -qd --tmpdir wesnoth-default.XXXXXXXXXX`
- if test x$TEMP_CONFIG_DIR = x; then
- echo "Could not create temporary dir before launch!"
- exit 20
- fi
- shift
- $WESNOTH_BIN_PATH --config-dir $TEMP_CONFIG_DIR $@
- rm -rf $TEMP_CONFIG_DIR || echo "Could not remove temporary config dir after launch!"
Advertisement
Add Comment
Please, Sign In to add comment