Skip to content

Commit

Permalink
Merge pull request #312 from udda1996/bal-tool
Browse files Browse the repository at this point in the history
Differentiate between 'bal dist update' and 'bal tool update'
  • Loading branch information
udda1996 authored Aug 29, 2023
2 parents 9a153ee + baf9a19 commit 1bbe929
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jreVersion=17.0.7+7
# For test purpose
swan-lake-version=2201.2.0
swan-lake-spec-version=2022R3
swan-lake-latest-version=2201.7.0
swan-lake-latest-version=2201.7.1
swan-lake-latest-spec-version=2023R1
1-x-channel-version=1.2.0
1-x-channel-spec-version=2020R1
1-x-channel-latest-version=1.2.40
1-x-channel-latest-version=1.2.43
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 1bbe929

Please sign in to comment.