Skip to content

Commit 719b308

Browse files
authored
Update kcl version command in install-cli.sh
1 parent d9ac93d commit 719b308

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

static/script/install-cli.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ checkExistingKCL() {
124124
if [ -f "$KCL_CLI_FILE" ]; then
125125
# Check the KCL CLI version
126126
echo -e "\nKCL is detected:"
127-
$KCL_CLI_FILE -V
127+
$KCL_CLI_FILE --version
128128
echo -e "Reinstalling KCL into ${KCL_CLI_FILE} ...\n"
129129
fi
130130
}
@@ -206,7 +206,7 @@ installFile() {
206206
if [ -f "$KCL_CLI_FILE" ]; then
207207
updateProfile "$KCL_HOME_DIR" && info "Finished" "$KCL_CLI_FILENAME installed into $KCL_INSTALL_DIR/bin successfully."
208208
# Check the KCL CLI version
209-
runAsRoot $KCL_CLI_FILE -V
209+
runAsRoot $KCL_CLI_FILE --version
210210
else
211211
error "Failed to install KCL into $KCL_INSTALL_DIR/bin"
212212
exit 1
@@ -228,8 +228,8 @@ updateProfile() {
228228
eprintf "$path_str"
229229
return 1
230230
else
231-
if ! command grep -qc 'KCLVM_HOME' "$detected_profile"; then
232-
info "The KCLVM PATH string is"
231+
if ! command grep -qc 'KCL_HOME' "$detected_profile"; then
232+
info "The KCL PATH string is"
233233
info $path_str
234234
command printf "$path_str" >> "$detected_profile"
235235
else

0 commit comments

Comments
 (0)