5 # just checks that all args are valid pkg files
8 while getopts v opt; do
15 for pkgfile in "$@"; do
16 if [ ! -f "$pkgfile" ]; then
17 if [ "$verbose" -eq 1 ]; then
18 echo $pkgfile does not appear to be a zpm package file 1>&2
23 appid=$(zpm shell $pkgfile 'pragma application_id;' | ( echo obase = 16; cat - ) | bc)
24 if [ "$appid" != "5A504442" ]; then
25 if [ "$verbose" -eq 1 ]; then
26 echo $pkgfile does not appear to be a zpm package file 1>&2