From 0d6a7728a1a6267665c66b29abf16ed32a4c8d03 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Thu, 7 Jan 2021 11:50:01 +0100 Subject: [PATCH] fix return code for build-* and -s option No idea how that slipped in there, damn. --- fxsdk/fxsdk.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/fxsdk/fxsdk.sh b/fxsdk/fxsdk.sh index 0e0efd1..76e281c 100755 --- a/fxsdk/fxsdk.sh +++ b/fxsdk/fxsdk.sh @@ -323,13 +323,19 @@ case $1 in # Project compilation "build"|"b") fxsdk_build - [[ $1 == "-s" ]] && fxsdk_send;; + if [[ "$2" == "-s" ]]; then + fxsdk_send + fi;; "build-fx"|"bf"|"bfx") fxsdk_build_fx - [[ $1 == "-s" ]] && fxsdk_send_fx;; + if [[ "$2" == "-s" ]]; then + fxsdk_send_fx + fi;; "build-cg"|"bc"|"bcg") fxsdk_build_cg - [[ $1 == "-s" ]] && fxsdk_send_cg;; + if [[ "$2" == "-s" ]]; then + fxsdk_send_cg + fi;; # Install "send"|"s")