mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2026-08-28 00:46:54 +00:00
Remove outdated comments from update-apps.sh
Removed comments regarding the new-style entrypoint and fallback logic for service extraction.
This commit is contained in:
@@ -174,10 +174,6 @@ function detect_service() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
# New-style entrypoint (write_update_entrypoint in core.func) carries the app
|
||||
# name in an export; its only /ct/ reference is the literal, unexpanded
|
||||
# "/ct/${UPDATE_SCRIPT_NAME}.sh" fallback, which the legacy grep below cannot
|
||||
# match. Prefer the explicit export, then fall back to the old literal path.
|
||||
service=$(sed -n -E 's/^[[:space:]]*export[[:space:]]+UPDATE_SCRIPT_NAME=["'"'"']?([a-zA-Z0-9._-]+).*/\1/p' "$update_file" | head -n1)
|
||||
[[ -z "$service" ]] && service=$(sed -n -E 's/^[[:space:]]*export[[:space:]]+SCRIPT_SLUG=["'"'"']?([a-zA-Z0-9._-]+).*/\1/p' "$update_file" | head -n1)
|
||||
[[ -z "$service" ]] && service=$(grep -oE '/ct/[a-zA-Z0-9._-]+\.sh' "$update_file" 2>/dev/null | head -n1 | sed 's|.*/ct/||; s|\.sh$||')
|
||||
|
||||
Reference in New Issue
Block a user