This commit is contained in:
emmett1
2018-06-06 22:43:18 +08:00
parent 69006df085
commit 176b407483
2 changed files with 9 additions and 1 deletions

View File

@@ -378,7 +378,9 @@ main() {
parse_opts $(extract_opt $@)
BASEPKGNAME=$(basename $PKGNAME)
if [ -n "$PKGNAME" ]; then
BASEPKGNAME=$(basename $PKGNAME)
fi
# disable colour
if [ "$NOCOLOR" ]; then

View File

@@ -991,6 +991,12 @@ if [ "$mode" = "deplist" ]; then
exit 0
fi
# print help message
if [ "$mode" = "help" ]; then
help
exit 0
fi
# list installed package in system
if [ "$mode" = "listinst" ]; then
listinstalled