From c1c0890f2f15663c19eb1bfbc3a3565760e0d5c1 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Mon, 26 Nov 2018 02:41:37 +0000 Subject: [PATCH] remove dependency on bc --- zpm-test | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.40.0