From c8767e7ecd814d734bdde943b6d2d41454f7cbb1 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Wed, 31 Oct 2018 21:45:23 +0800 Subject: [PATCH] updated --- revdep | 2 +- scratch | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/revdep b/revdep index 32de044..f9884cb 100755 --- a/revdep +++ b/revdep @@ -86,7 +86,7 @@ echo "Checking for broken linkage..." while IFS=' ' read -r line; do count=$(( $count + 1 )) - libname=$(basename $line) + libname=$(basename "$line") echo -ne " $(( 100*$count/$total ))% $libname\033[0K\r" case "$(file -bi "$line")" in *application/x-sharedlib* | *application/x-executable* | *application/x-pie-executable*) diff --git a/scratch b/scratch index a627bbf..ad87213 100755 --- a/scratch +++ b/scratch @@ -343,8 +343,8 @@ showdependent() { checkowner() { for pkg in $(allinstalled); do - for output in $(cat $INDEX_DIR/$pkg/.files | grep $1); do - echo -e "${CYAN}$pkg${CRESET} => ${PURPLE}$output${CRESET}" + cat $INDEX_DIR/$pkg/.files | grep $1 | while read line; do + echo -e "${CYAN}$pkg${CRESET} => ${PURPLE}$line${CRESET}" done done }