mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Misc
This commit is contained in:
parent
75e3ef9818
commit
18c6fd639a
1 changed files with 2 additions and 7 deletions
9
run.sh
9
run.sh
|
@ -6,7 +6,6 @@ BUILD="Release"
|
|||
UNTIL_CLEAN_EXIT=0
|
||||
|
||||
ASF_ARGS=("")
|
||||
MONO_ARGS=("")
|
||||
|
||||
PRINT_USAGE() {
|
||||
echo "Usage: $0 [--until-clean-exit] [--cryptkey=] [--path=] [--server] [debug/release]"
|
||||
|
@ -25,10 +24,6 @@ for ARG in "$@"; do
|
|||
esac
|
||||
done
|
||||
|
||||
if [[ "$BUILD" = "Debug" ]]; then
|
||||
MONO_ARGS+=("--debug")
|
||||
fi
|
||||
|
||||
cd "$(dirname "$(readlink -f "$0")")"
|
||||
|
||||
if [[ -f "mono_envsetup.sh" ]]; then
|
||||
|
@ -45,12 +40,12 @@ if [[ ! -f "$BINARY" ]]; then
|
|||
fi
|
||||
|
||||
if [[ "$UNTIL_CLEAN_EXIT" -eq 0 ]]; then
|
||||
mono "${MONO_ARGS[@]}" "$BINARY" "${ASF_ARGS[@]}"
|
||||
mono "$BINARY" "${ASF_ARGS[@]}"
|
||||
exit $?
|
||||
fi
|
||||
|
||||
while [[ -f "$BINARY" ]]; do
|
||||
if mono "${MONO_ARGS[@]}" "$BINARY" "${ASF_ARGS[@]}"; then
|
||||
if mono "$BINARY" "${ASF_ARGS[@]}"; then
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
|
|
Loading…
Reference in a new issue