Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiate between bal dist update and bal tool update #311

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading