diff --git a/asl.sh b/asl.sh index 0bee947..839b11c 100644 --- a/asl.sh +++ b/asl.sh @@ -10,6 +10,9 @@ update_script_from_github() { # Use curl to download the latest version from GitHub curl -fsSL "$GITHUB_RAW_URL" -o "$LOCAL_SCRIPT_PATH" + + sudo rm -rf /usr/local/bin/asl + sudo ln -s /usr/local/bin/asl.sh /usr/local/bin/asl if [ $? -eq 0 ]; then log "Script updated successfully from GitHub."