mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-09 13:14:26 +00:00
Misc
This will accept varying number of whitespace characters
This commit is contained in:
@@ -12,7 +12,7 @@ ASF_ARGS+=" $*"
|
||||
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
|
||||
|
||||
while :; do
|
||||
if grep -Fq '"Headless": true' 'config/ASF.json'; then
|
||||
if grep -Eq '"Headless":\s+?true' 'config/ASF.json'; then
|
||||
# We're running ASF in headless mode so we don't need STDIN
|
||||
dotnet ArchiSteamFarm.dll $ASF_ARGS & # Start ASF in the background, trap will work properly due to non-blocking call
|
||||
wait $! # This will forward dotnet error code, set -e will abort the script if it's non-zero
|
||||
|
||||
@@ -11,7 +11,7 @@ ASF_ARGS+=" $*"
|
||||
# Kill underlying ASF process on shell process exit
|
||||
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
|
||||
|
||||
if grep -Fq '"Headless": true' 'config/ASF.json'; then
|
||||
if grep -Eq '"Headless":\s+?true' 'config/ASF.json'; then
|
||||
# We're running ASF in headless mode so we don't need STDIN
|
||||
dotnet ArchiSteamFarm.dll $ASF_ARGS & # Start ASF in the background, trap will work properly due to non-blocking call
|
||||
wait $! # This will forward dotnet error code, set -e will abort the script if it's non-zero
|
||||
|
||||
Reference in New Issue
Block a user