mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-15 22:10:30 +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
|
||||
|
||||
2
cc.sh
2
cc.sh
@@ -26,7 +26,7 @@ if [[ "$TEST" -eq 1 ]]; then
|
||||
PROJECTS+=("ArchiSteamFarm.Tests")
|
||||
fi
|
||||
|
||||
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
|
||||
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM
|
||||
|
||||
if ! hash dotnet 2>/dev/null; then
|
||||
echo "ERROR: dotnet CLI tools are not installed!"
|
||||
|
||||
2
run.sh
2
run.sh
@@ -13,7 +13,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 ! hash dotnet 2>/dev/null; then
|
||||
echo "ERROR: dotnet CLI tools are not installed!"
|
||||
|
||||
Reference in New Issue
Block a user