wip
This commit is contained in:
parent
6746746a33
commit
57b81ce032
1 changed files with 9 additions and 0 deletions
|
@ -73,6 +73,10 @@ echo_error() {
|
|||
echo "${BOLD}${RED}${UNDERLINE}ERROR:${NC}${BRIGHT_RED} $1 ${NC}" >&2
|
||||
}
|
||||
|
||||
# INFO:
|
||||
# ↓ should get set in the install script itself
|
||||
# ↓
|
||||
# echo with $PACKAGE and first argument, if 2 exist
|
||||
echo_pkg() {
|
||||
# if arg 2 does not exist, use normal echo
|
||||
if [[ -z $2 ]]; then
|
||||
|
@ -83,6 +87,9 @@ echo_pkg() {
|
|||
clone)
|
||||
echo "${BOLD}${RED}${PACKAGE:-PKG}-clone:${NC}${YELLOW} Cloning $PACKAGE sources..${NC}"
|
||||
;;
|
||||
install)
|
||||
echo "${BOLD}${RED}${PACKAGE:-PKG}-install:${NC}${YELLOW} Installing $PACKAGE now!${NC}"
|
||||
;;
|
||||
*)
|
||||
echo "${BOLD}${RED}${PACKAGE:-PKG}:${NC}${YELLOW} $1 ${NC}"
|
||||
;;
|
||||
|
@ -173,6 +180,8 @@ check_env() {
|
|||
|
||||
if [ -e "$pikaCheckFile" ]; then
|
||||
PIKA_INIT=true
|
||||
else
|
||||
unset PIKA_INIT
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue