Skip to content

Commit

Permalink
zz
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Nov 13, 2023
1 parent 3735453 commit 6af2f5f
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 @@ -31,9 +31,9 @@ GITHUB_REPO=cli
# KCL filename
KCL_CLI_FILENAME=kcl
# KCL file path
KCL_CLI_FILE=${KCL_INSTALL_DIR}/kclvm/bin/${KCL_CLI_FILENAME}
KCL_CLI_FILE=${KCL_INSTALL_DIR}/bin/${KCL_CLI_FILENAME}
# KCL Home dir
KCL_HOME_DIR=${KCL_INSTALL_DIR}/kclvm
KCL_HOME_DIR=${KCL_INSTALL_DIR}/bin

# --- helper functions for logs ---
info() {
Expand Down Expand Up @@ -204,7 +204,7 @@ installFile() {
runAsRoot cp -rf $tmp_kclvm_folder $KCL_INSTALL_DIR

if [ -f "$KCL_CLI_FILE" ]; then
updateProfile "$KCL_HOME_DIR" && info "Finished" "$KCL_CLI_FILENAME installed into $KCL_INSTALL_DIR/kclvm/bin successfully."
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
else
Expand Down Expand Up @@ -329,7 +329,7 @@ cleanup() {
}

installCompleted() {
echo -e "\nPlease add ${KCL_INSTALL_DIR}/kclvm/bin into your PATH"
echo -e "\nPlease add ${KCL_INSTALL_DIR}/bin into your PATH"
echo -e "Remeber run the command source ~/.bash_profile or source ~/.bashrc to ensure your PATH is effective"
echo -e "Reopen a terminal and execute the kcl --help command to ensure successful installation"
echo -e "\nTo get started with KCL, please visit https://kcl-lang.io/docs/user_docs/getting-started/kcl-quick-start"
Expand Down

0 comments on commit 6af2f5f

Please sign in to comment.