General modification

This commit is contained in:
Captured Fish 2024-04-04 00:16:57 +03:30 committed by GitHub
parent 5c96158a99
commit 86d3eb031b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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