fix return code for build-* and -s option

No idea how that slipped in there, damn.
This commit is contained in:
Lephenixnoir 2021-01-07 11:50:01 +01:00
parent fefff0637a
commit 0d6a7728a1
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 9 additions and 3 deletions

View File

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