mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Don't catch EXIT signal
It's not only pointless, but causes issues when scripts are being run in another set -e container.
This commit is contained in:
@@ -9,7 +9,7 @@ fi
|
||||
ASF_ARGS+=" $*"
|
||||
|
||||
# Kill underlying ASF process on shell process exit
|
||||
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
|
||||
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM
|
||||
|
||||
while :; do
|
||||
if grep -Eq '"Headless":\s+?true' 'config/ASF.json'; then
|
||||
|
||||
@@ -9,7 +9,7 @@ fi
|
||||
ASF_ARGS+=" $*"
|
||||
|
||||
# Kill underlying ASF process on shell process exit
|
||||
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
|
||||
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM
|
||||
|
||||
if grep -Eq '"Headless":\s+?true' 'config/ASF.json'; then
|
||||
# We're running ASF in headless mode so we don't need STDIN
|
||||
|
||||
Reference in New Issue
Block a user