diff --git a/scripts/update.sh b/scripts/update.sh index 28fd98d9..4f6e35c0 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -95,6 +95,9 @@ if [ -z "$VERSION" ]; then error "No version specified. Usage: $0 " fi +# Strip leading 'v' from version if present (e.g., v0.4.19 -> 0.4.19) +VERSION="${VERSION#v}" + log "🚀 Starting CSF-Core update to version ${VERSION}..." 5 log "✓ Running with $([ "$EUID" -eq 0 ] && echo 'root privileges' || echo 'sudo')" 10