Skip to content

Commit 644edb0

Browse files
boilcyccmywish
authored andcommitted
Remove awk dependency from POSIX installer
1 parent 8e3d35f commit 644edb0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tool/installer.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@ get_arch() {
148148
}
149149

150150
get_platform() {
151-
echo $(uname -s | awk '{print tolower($0)}')
151+
uname -s | tr '[:upper:]' '[:lower:]'
152152
}
153153

154154
# Linux -> GNU/Linux
155155
# Android -> Android
156156
get_os() {
157-
echo $(uname -o | awk '{print tolower($0)}')
157+
uname -o | tr '[:upper:]' '[:lower:]'
158158
}
159159

160160

0 commit comments

Comments
 (0)