forked from flamegapps/flamegapps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
37 lines (35 loc) · 1.16 KB
/
setup.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
32
33
34
35
36
37
#!/bin/bash
#
###########################################
#
# Copyright (C) 2021 FlameGApps Project
#
# This file is part of the FlameGApps Project created by ayandebnath
#
# The FlameGApps scripts are free software, you can redistribute and/or modify them.
#
# These scripts are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY.
#
###########################################
#
if [ "$OSTYPE" = "linux-android" ]; then
# Install required packages for Termux
echo -e "\n${YELLOW}Installing required packages $NC"
pkg install -y $REQUIRED
elif [ "$OSTYPE" = "linux-gnu" ]; then
DISTRO=`grep -m1 "^ID=" "/etc/os-release" | cut -d= -f2`
if [ "$DISTRO" = "ubuntu" ]; then
# Install required packages for Ubuntu
echo -e "\n${YELLOW}Installing required packages $NC"
sudo apt install -y $REQUIRED
elif [ "$DISTRO" = "debian" ]; then
# Install required packages for Debian
echo -e "\n${YELLOW}Installing required packages $NC"
sudo apt update && sudo apt dist-upgrade
sudo apt install -y $REQUIRED
else
echo -e "\n${RED}This script does not support $DISTRO $NC"
exit 1
fi
fi
exec bash $home/build.sh $arg_1 $arg_2