From: Nathan Wagner Date: Sun, 30 Sep 2018 12:39:13 +0000 (+0000) Subject: install will init the localdb if it does not exist X-Git-Tag: v0.1.7~4 X-Git-Url: https://pd.if.org/git/?p=zpackage;a=commitdiff_plain;h=fa148616963d8d1f3eb8fe3b3997cb5db6bde6b5 install will init the localdb if it does not exist --- diff --git a/zpm-install b/zpm-install index 3ce6e15..b0cb8aa 100755 --- a/zpm-install +++ b/zpm-install @@ -84,6 +84,10 @@ if [ -z "$localdb" ]; then localdb=${rootdir:-/}/var/lib/zpm/local.db fi +if [ ! -f "$localdb" ]; then + zpm init "$localdb" +fi + ZPMDB=$localdb export ZPMDB