File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,10 @@ KERNEL_NAME=$(uname -s)
322322if [[ " $KERNEL_NAME " = " Linux" ]]; then
323323 KDEVICE_PATH=$( readlink -f " $DEVICE_PATH " )
324324elif [[ " $KERNEL_NAME " = " Darwin" ]]; then
325- KDEVICE_PATH=$( readlink " $DEVICE_PATH " )
325+ KDEVICE_PATH=$( readlink " $DEVICE_PATH " ) || true
326+ if [[ -z " $KDEVICE_PATH " ]]; then
327+ KDEVICE_PATH=$DEVICE_PATH
328+ fi
326329else
327330 echo " [-] Internal error 1" >&2
328331 exit 1
480483fi
481484
482485# is user attempting to format part?
483- if [[ " ${ IS_WHOLE,,} " = " no " ]]; then
486+ if [[ $( echo " $ IS_WHOLE" | tr ' [:upper:] ' ' [:lower:] ' ) ! = " yes " ]]; then
484487 if [[ " $PARTITION_TYPE " != " none" ]]; then
485488 echo " [-] You are attempting to format a single partition (as opposed to entire device)." >&2
486489 echo " [-] Partition type '$PARTITION_TYPE ' incompatible with single partition formatting." >&2
You can’t perform that action at this time.
0 commit comments