-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathinstaller.sh
More file actions
executable file
·31 lines (28 loc) · 801 Bytes
/
installer.sh
File metadata and controls
executable file
·31 lines (28 loc) · 801 Bytes
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
#!/data/data/com.termux/files/usr/bin/bash
debian="debian"
ubuntu="ubuntu"
fedora="fedora"
arch="arch"
if [[ "$OSTYPE" == "linux-gnu" ]]; then {
if [[ -f /etc/os-release ]]; then {
. /etc/os-release
OS=$ID_LIKE
if [[ "$OS" == *"$debian"* || "$OS" == *"$ubuntu"* ]]; then {
sudo chmod +x deb.sh
./deb.sh
} elif [[ "$OS" == *"$arch"* ]]; then {
sudo chmod +x arch.sh
./arch.sh
} elif [[ "$OS" == *"$fedora"* ]]; then {
sudo chmod +x fedora.sh
./fedora.sh
} fi
} fi
} elif [[ "$OSTYPE" == "darwin"* ]]; then {
sudo chmod +x mac.sh
./mac.sh
} elif [[ "$OSTYPE" == "linux-android"* ]]; then {
if chmod +x termux.sh; then ./termux.sh; fi
} fi
exit 0;