Update scripts

So they match more what travis is doing.
This commit is contained in:
JustArchi
2017-08-31 07:54:07 +02:00
parent cdd08ad14b
commit 6b4634746a
2 changed files with 18 additions and 11 deletions

7
run.sh
View File

@@ -2,7 +2,8 @@
set -eu
PROJECT="ArchiSteamFarm"
OUT="out"
OUT="out/source"
BINARY="${PROJECT}/${OUT}/${PROJECT}.dll"
ASF_ARGS=("")
@@ -28,6 +29,8 @@ if ! hash dotnet &>/dev/null; then
exit 1
fi
dotnet --info
cd "$(dirname "$(readlink -f "$0")")"
if [[ ! -f "$BINARY" ]]; then
@@ -37,7 +40,7 @@ fi
if [[ "$UNTIL_CLEAN_EXIT" -eq 0 ]]; then
dotnet exec "$BINARY" "${ASF_ARGS[@]}"
exit $?
exit $? # In this case $? can only be 0 because otherwise set -e terminates the script
fi
while [[ -f "$BINARY" ]]; do