diff --git a/convert-previews.sh b/convert-previews.sh index b21805c..8652778 100755 --- a/convert-previews.sh +++ b/convert-previews.sh @@ -38,7 +38,7 @@ then PREFIX="patch" fi -PKGNAME=$(strtolower "$GPREFIX"-"$PREFIX"-"$NAME") +PKGNAME=$(echo "$GPREFIX"-"$PREFIX"-"$NAME" | awk '{print tolower($0)}') if [ -f "$DECLDIR/$DECL_IMG.png" ] then diff --git a/decl-to-pkg.sh b/decl-to-pkg.sh index ca7f733..fc3fec9 100755 --- a/decl-to-pkg.sh +++ b/decl-to-pkg.sh @@ -70,7 +70,7 @@ then fi AUTHOR_SHORT=$(echo "$AUTHOR" | sed 's/ /_/g' | sed 's/\,//g'| sed 's/-//g' | sed "s|'||g" ) -VERSION_SHORT=$(strtolower "$VERSION" | sed 's/ /_/g') +VERSION_SHORT=$(echo "$VERSION" | awk '{print tolower($0)}' | sed 's/ /_/g') if [ $TYPE = Addons ] then @@ -135,7 +135,7 @@ then fi fi -PKGNAME=$(strtolower "$GPREFIX"-"$PREFIX"-"$NAME") +PKGNAME=$(echo "$GPREFIX"-"$PREFIX"-"$NAME" | awk '{print tolower($0)}') FILE="$PREFIX"-"$AUTHOR_SHORT"-"$NAME".pk4 # if we lack the hash, we probably lack everything else.