bin/install-toolkit: Init
Signed-off-by: Andrei Jiroh Eugenio Halili <andreijiroh@madebythepins.tk>
This commit is contained in:
parent
0a64135c8a
commit
98acef3b3e
|
@ -0,0 +1,24 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if echo "$OSTYPE" | grep -qE '^linux-gnu.*' && [ -f '/etc/debian_version' ]; then
|
||||||
|
IS_ANDROID=false
|
||||||
|
PKGMGR="sudo apt-get"
|
||||||
|
else
|
||||||
|
IS_ANDROID=true
|
||||||
|
PKGMGR="pkg"
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Install Python, Wget and cURL
|
||||||
|
if echo "$OSTYPE" | grep -qE '^linux-android.*'; then
|
||||||
|
$PKGMGR install python nodejs-lts nano wget git -y
|
||||||
|
else
|
||||||
|
$PKGMGR install python3 python3-dev python3-pip nano curl wget -y
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Then, install Node.js using nvm
|
||||||
|
NODEJS_INSTALL_PATH=$(command -v node))
|
||||||
|
if [[ $NODEJS_IBSTALL_PATH == "" ]]; then
|
||||||
|
#Todo
|
||||||
|
elif
|
||||||
|
#Todo
|
||||||
|
fi
|
Loading…
Reference in New Issue