Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 6168d96

Browse files
Merge pull request #99 from michaelforney/tr-escape
Avoid non-standard escape sequences in tr command
2 parents 9f66c14 + 0d0a41f commit 6168d96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install-template.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ valopt() {
169169
local doc="$*"
170170
if [ $HELP -eq 0 ]
171171
then
172-
local uop=$(echo $op | tr '[:lower:]' '[:upper:]' | tr '\-' '\_')
172+
local uop=$(echo $op | tr 'a-z-' 'A-Z_')
173173
local v="CFG_${uop}"
174174
eval $v="$default"
175175
for arg in $CFG_ARGS

0 commit comments

Comments
 (0)