This commit is contained in:
pika 2025-05-19 10:47:52 +02:00
parent 6746746a33
commit 57b81ce032

View file

@ -73,6 +73,10 @@ echo_error() {
echo "${BOLD}${RED}${UNDERLINE}ERROR:${NC}${BRIGHT_RED} $1 ${NC}" >&2 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() { echo_pkg() {
# if arg 2 does not exist, use normal echo # if arg 2 does not exist, use normal echo
if [[ -z $2 ]]; then if [[ -z $2 ]]; then
@ -83,6 +87,9 @@ echo_pkg() {
clone) clone)
echo "${BOLD}${RED}${PACKAGE:-PKG}-clone:${NC}${YELLOW} Cloning $PACKAGE sources..${NC}" 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}" echo "${BOLD}${RED}${PACKAGE:-PKG}:${NC}${YELLOW} $1 ${NC}"
;; ;;
@ -173,6 +180,8 @@ check_env() {
if [ -e "$pikaCheckFile" ]; then if [ -e "$pikaCheckFile" ]; then
PIKA_INIT=true PIKA_INIT=true
else
unset PIKA_INIT
fi fi
} }