]> git.wh0rd.org Git - chrome-ext/tabs-backup.git/commitdiff
makedist: normalize name
authorMike Frysinger <vapier@gentoo.org>
Sun, 10 Dec 2023 03:11:55 +0000 (20:11 -0700)
committerMike Frysinger <vapier@gentoo.org>
Sun, 10 Dec 2023 03:11:55 +0000 (20:11 -0700)
makedist.sh

index fdfc98c93edd5c814d3377c382b466b027b917d4..f0713b0bb10d148b0568a295266d829e3c412367 100755 (executable)
@@ -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}"