A modern and elegant dashboard for network traffic visualization and analysis.
refactor: Replace `tr` character classes with explicit character lists for case conversion in normalize functions.
luolei2995720951d6
diff --git a/apps/agent/install.sh b/apps/agent/install.shindex 88a0f60..b887c49 100755--- a/apps/agent/install.sh+++ b/apps/agent/install.sh@@ -71,7 +71,7 @@ download_file() {}normalize_os() {- raw="$(uname -s | tr '[:upper:]' '[:lower:]')"+ raw="$(uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz')"case "$raw" inlinux) echo "linux" ;;darwin) echo "darwin" ;;@@ -83,7 +83,7 @@ normalize_os() {}normalize_arch() {- raw="$(uname -m | tr '[:upper:]' '[:lower:]')"+ raw="$(uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz')"case "$raw" inx86_64 | amd64) echo "amd64" ;;aarch64 | arm64) echo "arm64" ;;