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:
JustArchi
2017-10-18 15:10:32 +02:00
parent 944421e47e
commit ad4e4ed92f
4 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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
View File

@@ -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
View File

@@ -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!"