From 4f739fb5ba77c9764ea4b4396c77d6c10cb2c4aa Mon Sep 17 00:00:00 2001 From: emmett1 Date: Sat, 11 Jan 2020 00:05:44 +0800 Subject: [PATCH] fix --- scratch | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scratch b/scratch index 48b21d9..280369f 100755 --- a/scratch +++ b/scratch @@ -168,16 +168,15 @@ scratch_integrity() { cat $INDEX_DIR/$pkg/.files | while read -r line; do if [ ! -e "$line" ]; then if [ -L "$line" ]; then - printf "${YELLOW}broken symlink${CRESET} $pkg: /$line" + echo "broken symlink $pkg: /$line" else - printf "${RED}file missing${CRESET} $pkg: /$line" + echo "missing file $pkg: /$line" fi fi done done cd - >/dev/null - fi - [ "$(id -u)" != "0" ] && msg "${YELLOW}(check integrity is recommended run as root or using sudo)${CRESET}" + fi } scratch_lock() { @@ -865,8 +864,8 @@ scratch_outdate() { iversion=$(installed_pkg_info version $pkg) irelease=$(installed_pkg_info release $pkg) [ -f "$INDEX_DIR/$pkg/.lock" ] && ITSLOCK="[locked]" - outdatemsg="$name ${RED}$iversion-$irelease${CRESET} => ${GREEN}$version-$release${CRESET} ${CYAN}$ITSLOCK${CRESET}" - newerinstmsg="$name ${RED}$iversion-$irelease${CRESET} => ${GREEN}$version-$release${CRESET} ${YELLOW}[newer installed]${CRESET} ${CYAN}$ITSLOCK${CRESET}" + outdatemsg="$name $iversion-$irelease => $version-$release $ITSLOCK" + newerinstmsg="$name $iversion-$irelease => $version-$release [newer installed] $ITSLOCK" if [ "$version" != "$iversion" ]; then vercomp $version $iversion if [ $? = 2 ]; then