Skip to content

Commit

Permalink
Merge pull request #63 from keizer619/master
Browse files Browse the repository at this point in the history
Clean previous ballerina commands
  • Loading branch information
Suganya authored Jan 22, 2021
2 parents 2e77744 + fb2a2d3 commit 92fd356
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,15 @@ if [ -f "/usr/lib/ballerina/bin/ballerina" ]
then
ln -sf /usr/lib/ballerina/bin/bal /usr/bin/bal
echo "export BALLERINA_HOME=/usr/lib/bal" >> /etc/profile.d/wso2.sh
rm -f /usr/lib/ballerina/bin/ballerina
elif [ -f "usr/lib64/ballerina/bin/ballerina" ]
then
ln -sf usr/lib64/ballerina/bin/bal /usr/bin/bal
rm -f usr/lib64/ballerina/bin/ballerina
elif [ -f "/Library/Ballerina/bin/ballerina" ]
then
echo "/Library/Ballerina/bin" >> target/darwinpkg/etc/paths.d/bal
rm -f /Library/Ballerina/bin/ballerina
fi

echo "The ‘ballerina’ command was changed to ‘bal’. Please use ‘bal’ command from now onwards."
Expand Down
1 change: 1 addition & 0 deletions resources/scripts/install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ echo $ bal dist update
echo Tool version updated to the latest version: @version@
echo Cleaning old files...

del /F/Q %CURRENT_PATH%\..\bin\ballerina.bat
for %%f in (%CURRENT_PATH%\..\lib\*ballerina-command*.jar) do (
echo %%f|find /i "ballerina-command-@[email protected]">nul
if errorlevel 1 (
Expand Down

0 comments on commit 92fd356

Please sign in to comment.