diff options
Diffstat (limited to 'deploy/shione/srb2kart/generate_dkartconfig.sh')
-rwxr-xr-x | deploy/shione/srb2kart/generate_dkartconfig.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/deploy/shione/srb2kart/generate_dkartconfig.sh b/deploy/shione/srb2kart/generate_dkartconfig.sh index e2799d9..23d2d4a 100755 --- a/deploy/shione/srb2kart/generate_dkartconfig.sh +++ b/deploy/shione/srb2kart/generate_dkartconfig.sh @@ -27,10 +27,17 @@ if [ -e dkartconfig.cfg ]; then rm -- dkartconfig.cfg fi +if [ -e dkartconfig_generated.cfg ]; then + rm -- dkartconfig_generated.cfg +fi + cp -- dkartconfig_base.cfg dkartconfig.cfg # NOTE: `find` does not offer a way to guarantee a desired sort of its output. -find mods -type f -printf 'addfile %p\n' | sort >dkartconfig.cfg +find mods -type f -printf 'addfile %p\n' | sort >dkartconfig_generated.cfg + +cat -- dkartconfig_generated.cfg >>dkartconfig.cfg +rm -- dkartconfig_generated.cfg if [ -e mods/index ]; then rm -rf -- mods/index |