From: Nathan Wagner Date: Mon, 24 Sep 2018 11:27:47 +0000 (+0000) Subject: fix eval variable name in zpm-list X-Git-Tag: v0.1.7~33 X-Git-Url: https://pd.if.org/git/?p=zpackage;a=commitdiff_plain;h=e22b15789cb499e39534ee0034f4f56f94d5a5a4 fix eval variable name in zpm-list --- diff --git a/zpm-list b/zpm-list index 471a280..5868ef2 100755 --- a/zpm-list +++ b/zpm-list @@ -22,10 +22,6 @@ if [ -z "$pkgfile" ]; then exit 1 fi -if [ -n "$status" ]; then - status=$(zpm quote "$status") -fi - if [ $nameonly -eq 0 ]; then cols="pkgid" else @@ -37,6 +33,7 @@ if [ $verbose -eq 1 ]; then fi if [ -n "$status" ]; then + status=$(zpm quote "$status") where="where status = '$status'" fi @@ -44,8 +41,8 @@ pkgid=$1 if [ -n "$pkgid" ]; then eval $(zpm parse -E "$pkgid") - if [ -n "$package" ]; then - package=$(zpm quote "$package") + if [ -n "$name" ]; then + package=$(zpm quote "$name") where="$where and package = '$package'" fi if [ -n "$version" ]; then