Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lvmsnapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ while getopts ':m:e:g:c:i:ndqh' OPTION ; do

e)
OPT_LVMEXTENSION=$OPTARG
ISSET_OPT_LVMEXTENSION="True"
;;

c)
Expand Down Expand Up @@ -341,7 +342,7 @@ if [ ! -z $OPT_MAPPERINDEX ]; then
MAPPERINDEX=$OPT_MAPPERINDEX
fi

if [ ! -z $OPT_LVMEXTENSION ]; then
if [ ! -z $ISSET_OPT_LVMEXTENSION ]; then
LVMEXTENSION=$OPT_LVMEXTENSION
fi

Expand Down Expand Up @@ -541,4 +542,4 @@ else
echo
usage $EXIT_ERROR
fi
exit $EXIT_SUCCESS
exit $EXIT_SUCCESS