Skip to content

Commit c3faf1a

Browse files
authored
style: use POSIX character classes in tr (5q6.7)
ShellCheck SC2018/SC2019 on scaffold.sh:57 — tr 'A-Z' 'a-z' is flagged because plain ranges don't cover accents/foreign alphabets. Switch to tr '[:upper:]' '[:lower:]'. No behavior change for ASCII names; turns the lint CI job green.
1 parent edfa4a3 commit c3faf1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/scaffold.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ done
5454
case "$PROFILE" in data|python|minimal) ;; *) echo "error: --profile must be data|python|minimal" >&2; exit 1 ;; esac
5555
[[ -n "$NAME" ]] || NAME="$(basename "$TARGET")"
5656

57-
PKG="$(printf '%s' "$NAME" | sed -e 's/[^A-Za-z0-9]/_/g' | tr 'A-Z' 'a-z')"
57+
PKG="$(printf '%s' "$NAME" | sed -e 's/[^A-Za-z0-9]/_/g' | tr '[:upper:]' '[:lower:]')"
5858
TARGET_VERSION="py${PYTHON//./}"
5959
TS="$(date +%Y%m%d-%H%M%S)"
6060

0 commit comments

Comments
 (0)