Skip to content

Commit

Permalink
Differentiate between 'bal dist update' and 'bal tool update'
Browse files Browse the repository at this point in the history
  • Loading branch information
udda1996 committed Aug 17, 2023
1 parent 9a153ee commit faaab97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/bin/bal
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
RUN_COMMAND=false
RUN_BALLERINA=true

if [ "$1" == "dist" ] || [ "$2" == "dist" ] || [ "$1" == "update" ]|| [ "$2" == "update" ]
if [ "$1" == "dist" ] || [ "$2" == "dist" ] || [ "$1" == "update" ] || ( [ "$1" == "dist" ] && [ "$2" == "update" ] )
then
RUN_COMMAND=true
RUN_BALLERINA=false
Expand Down
6 changes: 5 additions & 1 deletion resources/bin/bal.bat
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ set JAVA_CMD=java
if "%1" == "dist" set dist=true
if "%~2" == "dist" set dist=true
if "%1" == "update" set dist=true
if "%~2" == "update" set dist=true
if "%~2" == "update" (
if "%1" == "dist" (
set dist=true
)
)
if "%1" == "build" set dist=true
if "%1" == "update" set update=true
if "%1" == "build" set build=true
Expand Down

0 comments on commit faaab97

Please sign in to comment.