Check string length to ensure it worked

Change-Id: Id88ad942be50f1f101899096f83039d30076c754
This commit is contained in:
Ramy Asselin 2015-05-28 18:22:05 -07:00
parent 7f54dbed83
commit ec385d3207
1 changed files with 1 additions and 1 deletions

View File

@ -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