-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
31 lines (23 loc) · 712 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
install_pkg_on_termux() {
pkg update -y && pkg upgrade -y
pkg install git xz-utils jq ccrypt nodejs -y
# Install package ncssl
npm -g install @fajarkim/node-openssl-enc
# Install package gcrypt
npm -g install @barudakrosul/gcrypt
}
install_pkg_on_linux() {
sudo apt update -y && sudo apt upgrade -y
sudo apt install git xz-utils jq ccrypt nodejs -y
# Check package npm is installed or not
npm --version 2>&1 >/dev/null || sudo apt install npm -y
# Install package ncssl
npm -g install @fajarkim/node-openssl-enc
# Install package gcrypt
npm -g install @barudakrosul/gcrypt
}
case $HOME in
*/com.termux/*) install_pkg_on_termux;;
*) install_pkg_on_linux;;
esac