]> pd.if.org Git - zpackage/commitdiff
fix status after dry run
authorNathan Wagner <nw@hydaspes.if.org>
Sun, 25 Nov 2018 06:28:34 +0000 (06:28 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sun, 25 Nov 2018 06:28:34 +0000 (06:28 +0000)
zpm-install

index 0cb0281b36cce820622adee08cc9dafcb8b9fe51..c52f0a34c4726b05dee6aa79517f5dd99f1a2138 100755 (executable)
@@ -188,9 +188,11 @@ zpm syncfs $syncopts
 
 syncrv=$?
 
-for pkgid in $pkglist; do
-       zpm pkg $pkgid status=dryrun
-done
+if [ $dryrun -gt 0 ]; then
+       for pkgid in $pkglist; do
+               zpm pkg $pkgid status=dryrun
+       done
+fi
 
 if [ $syncrv -ne 0 ]; then
        zpm pkg $pkgid status=failed