From 53d2c6716e6fcedc9c21fb3933ffa4a007654dc2 Mon Sep 17 00:00:00 2001 From: Renken Date: Sat, 20 Jan 2024 21:26:36 +0100 Subject: split into two commits one for nftables and one for srb2kart --- deploy/shione/srb2kart/generate_dkartconfig.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'deploy/shione/srb2kart/generate_dkartconfig.sh') 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 -- cgit v1.2.3