Skip to content

Commit

Permalink
Fixed installer.sh not copying the .kgsm.version file during update
Browse files Browse the repository at this point in the history
  • Loading branch information
Flysenberg committed Dec 16, 2024
1 parent fe4176f commit f691f50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ function install_kgsm() {
echo -e "${0##*/} ${COLOR_BLUE}INFO${COLOR_END} Installing KGSM version $version..."

download_kgsm "$version"

echo "$version" >"${SELF_PATH}/${package^^}-${version}/${local_version_file}"
local local_version_file_abs_path="${SELF_PATH}/${package^^}-${version}/${local_version_file}"
echo "$version" >"$local_version_file_abs_path"

echo -e "${0##*/} ${COLOR_GREEN}SUCCESS${COLOR_END} KGSM version $version installed."
}
Expand Down Expand Up @@ -230,7 +230,7 @@ function update_kgsm() {

install_kgsm "$latest_version"

cp -r "${SELF_PATH}/${package^^}-${latest_version}"/* "$SELF_PATH"
cp -rT "${SELF_PATH}/${package^^}-${latest_version}"/. "$SELF_PATH"
rm -rf "${SELF_PATH}/${package^^}-${latest_version}"

echo -e "${0##*/} ${COLOR_GREEN}SUCCESS${COLOR_END} KGSM updated to version $latest_version."
Expand Down

0 comments on commit f691f50

Please sign in to comment.