This commit is contained in:
emmett1
2018-10-31 21:45:23 +08:00
parent 3dece5153f
commit c8767e7ecd
2 changed files with 3 additions and 3 deletions

2
revdep
View File

@@ -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*)

View File

@@ -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
}