diff --git a/resources/scripts/install b/resources/scripts/install index 424ce0e6..b22f5f57 100755 --- a/resources/scripts/install +++ b/resources/scripts/install @@ -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." diff --git a/resources/scripts/install.bat b/resources/scripts/install.bat index b9dc8e15..e5c84571 100644 --- a/resources/scripts/install.bat +++ b/resources/scripts/install.bat @@ -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-@version@.jar">nul if errorlevel 1 (