]> sourceware.org Git - lvm2.git/commitdiff
fsadm: avoid access to unbound variable
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 23 Feb 2021 13:14:16 +0000 (14:14 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 23 Feb 2021 13:56:47 +0000 (14:56 +0100)
scripts/fsadm.sh

index 2cb1fc75b45fc42e1a5c264b6b755a480f699050..4f59cee134a4423a4b0c756153c52b2181e98ee8 100755 (executable)
@@ -163,7 +163,7 @@ cleanup() {
                _FSADM_EXTOFF=$EXTOFF
                export _FSADM_YES _FSADM_EXTOFF
                unset FSADM_RUNNING
-               test -n "$LVM_BINARY" && PATH=$_SAVEPATH
+               test -n "${LVM_BINARY-}" && PATH=$_SAVEPATH
                dry exec "$LVM" lvresize $VERB $FORCE -r -L"${NEWSIZE_ORIG}b" "$VOLUME_ORIG"
        fi
 
This page took 0.038527 seconds and 5 git commands to generate.