Skip to content

Commit

Permalink
Fix: incorrect output for vela cli installation (kubevela#423)
Browse files Browse the repository at this point in the history
Signed-off-by: Shuai Tian <[email protected]>
  • Loading branch information
Shuai Tian committed Jan 11, 2022
1 parent edec78c commit dcbb787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/script/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ installFile() {
chmod o+x $tmp_root_vela_cli
runAsRoot cp "$tmp_root_vela_cli" "$VELA_INSTALL_DIR"

if [ -f "$VELA_CLI_FILE" ]; then
if [ $? -eq 0 ] && [ -f "$VELA_CLI_FILE" ]; then
echo "$VELA_CLI_FILENAME installed into $VELA_INSTALL_DIR successfully."

$VELA_CLI_FILE --version
$VELA_CLI_FILE version
else
echo "Failed to install $VELA_CLI_FILENAME"
exit 1
Expand Down

0 comments on commit dcbb787

Please sign in to comment.