develop

Conflicts:
	gmod/initConfig.sh
This commit is contained in:
Lucas Briese
2020-10-12 22:39:42 +02:00
5 changed files with 35 additions and 20 deletions

View File

@ -1,4 +1,6 @@
FROM jusito/docker-ttt:lgsm_debian
ARG SUFFIX=""
FROM jusito/docker-ttt:lgsm_debian${SUFFIX}
# Const \\ Overwrite Env \\ Configs optional
ENV CSS_PATH="/home/steam/addons/css" \

View File

@ -19,11 +19,12 @@ function configReplace() {
echo "[initConfig.sh]Request for replacing $source to $target, source is found $count times"
if [ "$count" == "1" ]; then
sed -Ei "s/${source}.*/${source} ${target}/g" "${CFG_PATH}"
sed -Ei "/${source}.*/d" "${CFG_PATH}"
echo "$source $target" >> "${CFG_PATH}"
elif [ "$count" == "0" ]; then
echo "" >> "${CFG_PATH}"
echo "$target" >> "${CFG_PATH}"
echo "$source $target" >> "${CFG_PATH}"
else
echo "[initConfig.sh]can't set $1 because there are multiple in"