From: Nathan Wagner Date: Mon, 26 Nov 2018 02:41:37 +0000 (+0000) Subject: remove dependency on bc X-Git-Tag: v0.2.17 X-Git-Url: https://pd.if.org/git/?p=zpackage;a=commitdiff_plain;h=c1c0890f2f15663c19eb1bfbc3a3565760e0d5c1 remove dependency on bc --- diff --git a/zpm-test b/zpm-test index 97d3cd6..860a5d1 100755 --- a/zpm-test +++ b/zpm-test @@ -20,8 +20,9 @@ for pkgfile in "$@"; do exit 1 fi -appid=$(zpm shell $pkgfile 'pragma application_id;' | ( echo obase = 16; cat - ) | bc) -if [ "$appid" != "5A504442" ]; then +# 0x5A504442 == 1515209794 +appid=$(zpm shell $pkgfile 'pragma application_id;') +if [ "$appid" != "1515209794" ]; then if [ "$verbose" -eq 1 ]; then echo $pkgfile does not appear to be a zpm package file 1>&2 fi