mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 21:02:46 +00: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
|
||||
|
||||
@@ -74,7 +74,9 @@ name=${archiveName%.*}
|
||||
echo "name: $name"
|
||||
archiveExt=${archiveName##*.}
|
||||
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"
|
||||
|
||||
if [ "$archiveExt" = "pkg" ]; then
|
||||
|
||||
Reference in New Issue
Block a user