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 exist 1>&2
23 # 0x5A504442 == 1515209794
24 appid=$(zpm shell $pkgfile 'pragma application_id;')
25 if [ "$appid" != "1515209794" ]; then
26 if [ "$verbose" -eq 1 ]; then
27 echo $pkgfile does not appear to be a zpm package file 1>&2