X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-test;h=97d3cd62935a056162d6bf70afff3b3119571937;hb=9d050f2f746624652d1ba7ef90fa8d3096bc7d89;hp=4ed9e85b2e2f2c9d8393c10dde79f0936339dfbe;hpb=6d070e7b1f4ae6e319c9a3a856d05d3de720c3bb;p=zpackage diff --git a/zpm-test b/zpm-test index 4ed9e85..97d3cd6 100755 --- a/zpm-test +++ b/zpm-test @@ -15,12 +15,12 @@ shift $((OPTIND - 1)) for pkgfile in "$@"; do if [ ! -f "$pkgfile" ]; then if [ "$verbose" -eq 1 ]; then - echo $pkgfile does not appear to be a zpm package file 1>&2 + echo $pkgfile does not exist 1>&2 fi exit 1 fi -appid=$(sqlite3 $pkgfile 'pragma application_id;' | ( echo obase = 16; cat - ) | bc) +appid=$(zpm shell $pkgfile 'pragma application_id;' | ( echo obase = 16; cat - ) | bc) if [ "$appid" != "5A504442" ]; then if [ "$verbose" -eq 1 ]; then echo $pkgfile does not appear to be a zpm package file 1>&2