From 63f706ad49581e82b7bc828142cc8acf597d32f1 Mon Sep 17 00:00:00 2001 From: MysticalMike60t Date: Thu, 30 Jan 2025 21:57:29 -0700 Subject: [PATCH] Update asl.sh --- asl.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/asl.sh b/asl.sh index d37e535..0bee947 100644 --- a/asl.sh +++ b/asl.sh @@ -8,10 +8,14 @@ update_script_from_github() { LOCAL_SCRIPT_PATH="$0" # Get the current script path log "Updating script from GitHub..." - # Download the latest version from GitHub + # Use curl to download the latest version from GitHub curl -fsSL "$GITHUB_RAW_URL" -o "$LOCAL_SCRIPT_PATH" - log "Script updated successfully." + if [ $? -eq 0 ]; then + log "Script updated successfully from GitHub." + else + log "Failed to update script from GitHub." + fi } # Color codes for different sections