fixed detect_os.sh again
This commit is contained in:
parent
4c34c127a6
commit
5953b84cff
12
detect_os.sh
12
detect_os.sh
@ -1,8 +1,8 @@
|
||||
usr/bin/env bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
lude "cbuild/myprint.sh"
|
||||
include "cbuild/myprint.sh"
|
||||
|
||||
ction detect_os {
|
||||
function detect_os {
|
||||
local uname_result="$(uname -o)"
|
||||
# myprint "uname result: '$uname_result'"
|
||||
case "$uname_result" in
|
||||
@ -22,9 +22,9 @@ ction detect_os {
|
||||
error "unknown operating system: $uname_result"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
ction detect_arch {
|
||||
function detect_arch {
|
||||
local uname_result="$(uname -m)"
|
||||
case "$uname_result" in
|
||||
arm | arm32 | armhf | aarch32)
|
||||
@ -43,4 +43,4 @@ ction detect_arch {
|
||||
error "unknown CPU architecture: $uname_result"
|
||||
;;
|
||||
esac
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user