From d9ee682eae995cfb628ea0ef7c4518aa35fd358b Mon Sep 17 00:00:00 2001 From: Suganya Date: Thu, 8 Apr 2021 14:39:11 +0530 Subject: [PATCH] Add review suggestions --- resources/bin/bal | 2 +- resources/scripts/install | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/resources/bin/bal b/resources/bin/bal index 79b5b1d8..2a333666 100755 --- a/resources/bin/bal +++ b/resources/bin/bal @@ -36,7 +36,7 @@ then then printf "#!/usr/bin/env bash\n\n" cat $CURRENT_PATH/../scripts/bal_completion.bash - else + elif [ "$2" == "zsh" ] printf "#!/usr/bin/env bash\n\n" printf "autoload -U +X bashcompinit && bashcompinit\n" printf "autoload -U +X compinit && compinit\n\n" diff --git a/resources/scripts/install b/resources/scripts/install index 5afe915c..f1c96fa1 100755 --- a/resources/scripts/install +++ b/resources/scripts/install @@ -47,11 +47,6 @@ fi if [ $? -ne '0' ]; then echo "error occurred while copying completion script file." - # remove already copied jar. - if [ -f "$CURRENT_PATH/../lib/ballerina-command-@version@.jar" ]; then - rm -rf $CURRENT_PATH/../lib/ballerina-command-@version@.jar - fi - exit $? fi echo "Updating environment variables"