Merge pull request #122 from stevefan1999-personal/patch-2

Use source instead of creating a subshell
This commit is contained in:
John Edwards 2024-06-26 16:46:54 +01:00 committed by GitHub
commit 4bfd461dcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,7 +71,7 @@ fi
cd "${STEAMAPPDIR}/game/bin/linuxsteamrt64"
# Pre Hook
bash "${STEAMAPPDIR}/pre.sh"
source "${STEAMAPPDIR}/pre.sh"
# Construct server arguments
@ -116,4 +116,4 @@ eval "./cs2" -dedicated \
"${CS2_ADDITIONAL_ARGS}"
# Post Hook
bash "${STEAMAPPDIR}/post.sh"
source "${STEAMAPPDIR}/post.sh"