Fix grammar error in rescan-scsi-bus.sh

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
This commit is contained in:
Wenchao Hao 2022-02-17 15:44:18 +08:00
parent 43420af480
commit 6080c95e41
2 changed files with 5 additions and 2 deletions

View File

@ -38,7 +38,7 @@ index b1cbebc..25a5f2a 100755
printf "\r\e[A";
# Optimization: if lun==0, stop here (only if in non-remove mode)
- if [ "$lun" = 0 ] && [ -z "$remove" ] && [ "$optscan" = 1 ] ; then
+ if [ "x$lun" = x0 ] && [ -z "$remove" ] && [ "x$optscan" = x1 ] ; then
+ if [ x"$lun" = x0 ] && [ -z "$remove" ] && [ "x$optscan" = x1 ] ; then
return 1;
fi
else

View File

@ -1,6 +1,6 @@
Name: sg3_utils
Version: 1.46
Release: 3
Release: 4
Summary: Utilities that send SCSI commands to devices.
License: GPL-2.0-or-later AND BSD
URL: http://sg.danny.cz/sg/sg3_utils.html
@ -76,6 +76,9 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la
%{_mandir}/man8/*
%changelog
* Thu Feb 17 2022 Wenchao Hao <haowenchao@huawei.com> -1.46-4
- Fix grammar error in rescan-scsi-bus.sh
* Tue Feb 15 2022 Wenchao Hao <haowenchao@huawei.com> -1.46-3
- Fix rescan-scsi-bus.sh -r remove valid disks