mirror of
https://github.com/outbackdingo/scratchpkg.git
synced 2026-03-22 02:44:51 +00:00
updated
This commit is contained in:
@@ -15,7 +15,7 @@ fi
|
||||
checkinstalled() {
|
||||
|
||||
if [ -d $INDEX_DIR/$1 ]; then
|
||||
msg "Package ${color_green}$1${color_reset} already installed"
|
||||
msg "Package ${GREEN}$1${CRESET} already installed"
|
||||
else
|
||||
depinst $1
|
||||
fi
|
||||
@@ -33,7 +33,7 @@ checkpkg() {
|
||||
fi
|
||||
done
|
||||
if [ ! "$PORT_EXIST" ]; then
|
||||
msgerr "Port ${color_red}$arg${color_reset} not exist"
|
||||
msgerr "Port ${RED}$arg${CRESET} not exist"
|
||||
exit 1
|
||||
fi
|
||||
unset PORT_EXIST
|
||||
|
||||
@@ -51,7 +51,7 @@ calc_dep $1
|
||||
|
||||
for deps in ${DEP[@]}; do
|
||||
if [ -e $INDEX_DIR/$deps/.pkginfo ]; then
|
||||
echo -e "$deps ${color_green}[installed]${color_reset}"
|
||||
echo -e "$deps ${GREEN}[installed]${CRESET}"
|
||||
else
|
||||
echo $deps
|
||||
fi
|
||||
|
||||
@@ -91,7 +91,7 @@ done
|
||||
|
||||
#for i in $list; do
|
||||
#if [ -d $INDEX_DIR/$i ]; then
|
||||
#msg "$i ${color_green}[installed]${color_reset}"
|
||||
#msg "$i ${GREEN}[installed]${CRESET}"
|
||||
#else
|
||||
#echo
|
||||
#msg "installing $i..."
|
||||
|
||||
@@ -58,7 +58,7 @@ allpkg() {
|
||||
MISSING_LIB=""
|
||||
for i in $LIB_NAME; do
|
||||
if echo $REQ_LIB | grep -q $i; then
|
||||
[ "$VERBOSE" ] && echo -e "(${color_green}$PKG_NAME${color_reset}) $line ${color_green}>>>${color_reset} $i"
|
||||
[ "$VERBOSE" ] && echo -e "(${GREEN}$PKG_NAME${CRESET}) $line ${GREEN}>>>${CRESET} $i"
|
||||
if [[ "$(echo ${ALLPKG[@]} | tr ' ' '\n' | grep -w "$PKG_NAME")" ]]; then
|
||||
continue
|
||||
else
|
||||
@@ -81,7 +81,7 @@ allpkg() {
|
||||
[ -z "$VERBOSE" ] || echo
|
||||
echo "This package(s) need rebuild:"
|
||||
for rebuild in ${ALLPKG[@]}; do
|
||||
echo -e "${color_green}>>>${color_reset} $rebuild"
|
||||
echo -e "${GREEN}>>>${CRESET} $rebuild"
|
||||
done
|
||||
else
|
||||
msg "All packages is doing fine."
|
||||
|
||||
@@ -49,7 +49,7 @@ fi
|
||||
if [ "${#successuppkg[@]}" -gt 0 ]; then
|
||||
echo "Successfully update this package(s):"
|
||||
for ok in ${successuppkg[@]}; do
|
||||
echo -e "${color_green}>>>${color_reset} $ok"
|
||||
echo -e "${GREEN}>>>${CRESET} $ok"
|
||||
done
|
||||
fi
|
||||
|
||||
@@ -57,7 +57,7 @@ if [ "${#faileduppkg[@]}" -gt 0 ]; then
|
||||
[ "${#successuppkg[@]}" -gt 0 ] && echo # make space between success and failed
|
||||
echo "Failed update this package(s):"
|
||||
for ko in ${faileduppkg[@]}; do
|
||||
echo -e "${color_red}>>>${color_reset} $ko"
|
||||
echo -e "${RED}>>>${CRESET} $ko"
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user