diff options
author | Renken <renken@shione.net> | 2024-01-20 21:26:36 +0100 |
---|---|---|
committer | Renken <renken@shione.net> | 2024-05-12 16:49:35 +0200 |
commit | 53d2c6716e6fcedc9c21fb3933ffa4a007654dc2 (patch) | |
tree | 4db3ddcfb245efb08d259e9708f1b59248bd5282 /deploy/shione/srb2kart/generate_dkartconfig.sh | |
parent | efd70116f17350310a7093b78faaa0eaafa471d5 (diff) | |
download | shione-53d2c6716e6fcedc9c21fb3933ffa4a007654dc2.tar.gz shione-53d2c6716e6fcedc9c21fb3933ffa4a007654dc2.zip |
split into two commits one for nftables and one for srb2kart
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 |