From: Mike Frysinger Date: Sun, 10 Dec 2023 03:11:55 +0000 (-0700) Subject: makedist: normalize name X-Git-Tag: v1.0~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=23b58d6835fcec40a6c522ed9f06ca72edccc64e;p=chrome-ext%2Ftabs-backup.git makedist: normalize name --- 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}"