forked from coolaj86/node-installer.sh
Update setup.bash to work on Marvell arm64 OS
This commit is contained in:
parent
a99583fb1d
commit
8a3f4ba77f
|
@ -95,7 +95,7 @@ elif [ "$(uname | grep -i 'Linux')" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [ -n "$(arch | grep 64)" ]; then
|
||||
if [ -n "$(uname -a | grep 64)" ]; then
|
||||
ARCH="64"
|
||||
else
|
||||
ARCH="32"
|
||||
|
@ -117,6 +117,8 @@ elif [ "$(uname | grep -i 'Linux')" ]; then
|
|||
OS='raspbian'
|
||||
elif [ "$(cat /etc/issue | grep -i 'Fedora')" ]; then
|
||||
OS='fedora'
|
||||
elif [ "$(cat /etc/issue | grep -i 'Marvell')" ]; then
|
||||
OS='marvell'
|
||||
fi
|
||||
else
|
||||
echo "unsupported unknown os (non-mac, non-linux)"
|
||||
|
@ -134,6 +136,9 @@ case "${OS}" in
|
|||
raspbian)
|
||||
SETUP_FILE="ubuntu"
|
||||
;;
|
||||
marvell)
|
||||
SETUP_FILE="ubuntu"
|
||||
;;
|
||||
yosemite)
|
||||
# mavericks
|
||||
SETUP_FILE="mavericks"
|
||||
|
|
Loading…
Reference in New Issue