We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am facing an issue when executing the bash script for substituting dashes and capitals in font file names for Android.
${normalized,,}: bad substitution
After some research, I found that it was due to my bash version that was under version 4.
I am on a Macbook pro M1 and the bash shell is at version 3.2.57.
You can replace the previous code with the following line:
normalized=$(echo "$normalized" | tr '[:upper:]' '[:lower:]')
The text was updated successfully, but these errors were encountered:
updated fixfonts.sh
fixfonts.sh
#!/bin/bash # fixfonts.sh typeset folder="$1" if [[ -d "$folder" && ! -z "$folder" ]]; then pushd "$folder"; for file in *.ttf; do typeset normalized="${file//-/_}"; normalized=$(echo "$normalized" | tr '[:upper:]' '[:lower:]'); mv "$file" "$normalized" done popd fi
Sorry, something went wrong.
No branches or pull requests
I am facing an issue when executing the bash script for substituting dashes and capitals in font file names for Android.
${normalized,,}: bad substitution
After some research, I found that it was due to my bash version that was under version 4.
I am on a Macbook pro M1 and the bash shell is at version 3.2.57.
You can replace the previous code with the following line:
normalized=$(echo "$normalized" | tr '[:upper:]' '[:lower:]')
The text was updated successfully, but these errors were encountered: