commit
5e792cecd9
1 changed files with 7 additions and 7 deletions
14
build.sh
14
build.sh
|
@ -2,7 +2,7 @@
|
||||||
main() {
|
main() {
|
||||||
set -e
|
set -e
|
||||||
local Black DarkGray Red LightRed Green LightGreen Brown Yellow Blue LightBlue Purple Light Purple Cyan LightCyan LightGray White reset
|
local Black DarkGray Red LightRed Green LightGreen Brown Yellow Blue LightBlue Purple Light Purple Cyan LightCyan LightGray White reset
|
||||||
## save colors
|
## Save colors
|
||||||
Black="\e[0;30m"
|
Black="\e[0;30m"
|
||||||
DarkGray="\e[1;30m"
|
DarkGray="\e[1;30m"
|
||||||
Red="\e[0;31m"
|
Red="\e[0;31m"
|
||||||
|
@ -23,21 +23,21 @@ main() {
|
||||||
local reponame
|
local reponame
|
||||||
reponame=${PWD##*/}
|
reponame=${PWD##*/}
|
||||||
|
|
||||||
echo -e "$Green### start install packeges for build $reponame ###$reset"
|
echo -e "$Green### Start install packages for build $reponame ###$reset"
|
||||||
echo -e "$Brown### checking your os ###$reset"
|
echo -e "$Brown### Checking your OS ###$reset"
|
||||||
if type pacman >/dev/null 2>&1;then
|
if type pacman >/dev/null 2>&1;then
|
||||||
if [ "$(id -u)" != "0" ]; then
|
if [ "$(id -u)" != "0" ]; then
|
||||||
echo -e "$Red### you are not in root$reset"
|
echo -e "$Red### You are not in root$reset"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
install
|
install
|
||||||
echo -e "$Blue### install complete ###$reset"
|
echo -e "$Blue### Install complete ###$reset"
|
||||||
echo -e "$Green### start build $reponame with archiso ###$reset"
|
echo -e "$Green### Start build $reponame with archiso ###$reset"
|
||||||
build
|
build
|
||||||
makezip
|
makezip
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -e "$Red###os cant supported###$reset"
|
echo -e "$Red###OS can't supported###$reset"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue