From 450610b6e67ac735c939deb6ecac81622bc848c0 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Wed, 6 Aug 2025 19:14:32 +0200 Subject: [PATCH] Update update-pve8.sh --- scripts/global/update-pve8.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/scripts/global/update-pve8.sh b/scripts/global/update-pve8.sh index 6e8aa53..4dd5133 100644 --- a/scripts/global/update-pve8.sh +++ b/scripts/global/update-pve8.sh @@ -31,15 +31,9 @@ register_tool() { download_common_functions() { - local common_file="$BASE_DIR/scripts/global/common-functions.sh" - - if [[ ! -f "$common_file" ]]; then - if ! curl -s "$REPO_URL/scripts/global/common-functions.sh" -o "$common_file"; then - return 1 - fi + if ! source <(curl -s "$REPO_URL/scripts/global/common-functions.sh"); then + return 1 fi - - source "$common_file" } update_pve8() { @@ -159,9 +153,6 @@ EOF if ! show_update_menu "$current_pve_version" "$available_pve_version" "$upgradable" "$security_updates"; then msg_info2 "$(translate "Update cancelled by user")" perform_final_cleanup - echo -e - msg_success "$(translate "Press Enter to return to menu...")" - read -r return 0 fi