This commit is contained in:
emmett1
2017-09-06 21:28:15 +08:00
parent 68a7f4f24e
commit bf9860a71a

View File

@@ -47,7 +47,7 @@ removepkg() {
NOREMOVE=""
for allinst in $(ls $INDEX_DIR); do
if [ $1 != $allinst ]; then
if [ $(cat $INDEX_DIR/$allinst/.files | grep -w "$line") ]; then
if [ "$(cat $INDEX_DIR/$allinst/.files | grep -w "$line")" ]; then
NOREMOVE=yes
break
fi