]> pd.if.org Git - zpackage/commitdiff
check for db init failure in install
authorNathan Wagner <nw@hydaspes.if.org>
Sun, 30 Sep 2018 15:28:56 +0000 (15:28 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sun, 30 Sep 2018 15:28:56 +0000 (15:28 +0000)
zpm-install

index b0cb8aa37a9a1ba379c1db88554d4d4ca8d5e2d1..a654ab56b5d314fa29f2b4056b95efe6af360c23 100755 (executable)
@@ -86,6 +86,9 @@ fi
 
 if [ ! -f "$localdb" ]; then
        zpm init "$localdb"
+       if [ $? -ne 0 ]; then
+               die "aborting install"
+       fi
 fi
 
 ZPMDB=$localdb