Check string length to ensure it worked
Change-Id: Id88ad942be50f1f101899096f83039d30076c754
This commit is contained in:
parent
7f54dbed83
commit
ec385d3207
|
@ -176,7 +176,7 @@ echo $?
|
|||
echo $(sudo lspci | grep -i fib)
|
||||
|
||||
device_path=$(sudo systool -c fc_host -v | grep "Device path")
|
||||
if [[ ${device_path} -eq 0 ]]; then
|
||||
if [[ ${#device_path} -eq 0 ]]; then
|
||||
echo "Failed to install FC Drivers. Aborting."
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue