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 }