]> pd.if.org Git - zpackage/commitdiff
remove dependency on bc v0.2.17
authorNathan Wagner <nw@hydaspes.if.org>
Mon, 26 Nov 2018 02:41:37 +0000 (02:41 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Mon, 26 Nov 2018 02:41:37 +0000 (02:41 +0000)
zpm-test

index 97d3cd62935a056162d6bf70afff3b3119571937..860a5d1de31a6335f3e014285d3b560ae4b53f60 100755 (executable)
--- 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