Skip to content

Commit

Permalink
Update kcl version command in install-cli.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy authored Jan 15, 2025
1 parent d9ac93d commit 719b308
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions static/script/install-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ checkExistingKCL() {
if [ -f "$KCL_CLI_FILE" ]; then
# Check the KCL CLI version
echo -e "\nKCL is detected:"
$KCL_CLI_FILE -V
$KCL_CLI_FILE --version
echo -e "Reinstalling KCL into ${KCL_CLI_FILE} ...\n"
fi
}
Expand Down Expand Up @@ -206,7 +206,7 @@ installFile() {
if [ -f "$KCL_CLI_FILE" ]; then
updateProfile "$KCL_HOME_DIR" && info "Finished" "$KCL_CLI_FILENAME installed into $KCL_INSTALL_DIR/bin successfully."
# Check the KCL CLI version
runAsRoot $KCL_CLI_FILE -V
runAsRoot $KCL_CLI_FILE --version
else
error "Failed to install KCL into $KCL_INSTALL_DIR/bin"
exit 1
Expand All @@ -228,8 +228,8 @@ updateProfile() {
eprintf "$path_str"
return 1
else
if ! command grep -qc 'KCLVM_HOME' "$detected_profile"; then
info "The KCLVM PATH string is"
if ! command grep -qc 'KCL_HOME' "$detected_profile"; then
info "The KCL PATH string is"
info $path_str
command printf "$path_str" >> "$detected_profile"
else
Expand Down

0 comments on commit 719b308

Please sign in to comment.