From 23b58d6835fcec40a6c522ed9f06ca72edccc64e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 9 Dec 2023 20:11:55 -0700 Subject: [PATCH] makedist: normalize name --- makedist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makedist.sh b/makedist.sh index fdfc98c..f0713b0 100755 --- a/makedist.sh +++ b/makedist.sh @@ -11,7 +11,7 @@ print(data[key]) ' "manifest.json" "${key}" } -PN=$(json_value name | sed 's:[[:space:]/]:_:g' | tr '[:upper:]' '[:lower:]') +PN=$(json_value name | sed -e 's:[[:space:]/]:_:g' -e 's:[^a-z0-9_-]::g' | tr '[:upper:]' '[:lower:]') PV=$(json_value version) P="${PN}-${PV}" -- 2.39.5