mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-09 14:23:10 +01:00
change to zsh
Then we can use zsh to somewhat clean up the label name (at least get rid of special characters from the URL).
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/zsh
|
||||||
|
|
||||||
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
||||||
|
|
||||||
@@ -74,7 +74,9 @@ name=${archiveName%.*}
|
|||||||
echo "name: $name"
|
echo "name: $name"
|
||||||
archiveExt=${archiveName##*.}
|
archiveExt=${archiveName##*.}
|
||||||
echo "archiveExt: $archiveExt"
|
echo "archiveExt: $archiveExt"
|
||||||
identifier=$(echo $name | tr '[:upper:]' '[:lower:]')
|
identifier=${name:l}
|
||||||
|
identifier=${identifier//\%[0-9a-fA-F][0-9a-fA-F]}
|
||||||
|
identifier=${identifier//[,._*@$\(\)\-]}
|
||||||
echo "identifier: $identifier"
|
echo "identifier: $identifier"
|
||||||
|
|
||||||
if [ "$archiveExt" = "pkg" ]; then
|
if [ "$archiveExt" = "pkg" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user