fix pkgadd script

This commit is contained in:
emmett1
2019-01-29 00:01:17 +08:00
parent c09d7bebef
commit 32e1828b4b

2
pkgadd
View File

@@ -121,7 +121,7 @@ parse_opts() {
--no-color) NOCOLOR=yes ;;
--no-hook) NOHOOK=yes ;;
--root=*) ROOT="${1#*=}" ;;
*.spkg.*) PKGNAME="$1" ;;
*.spkg.tar.*) PKGNAME="$1" ;;
*) msg "Invalid option! ($1)"; exit 1 ;;
esac
shift