!36 Fix grammar error in rescan-scsi-bus.sh

From: @wenchao-hao 
Reviewed-by: @wubo009 
Signed-off-by: @wubo009
This commit is contained in:
openeuler-ci-bot 2022-02-17 13:14:29 +00:00 committed by Gitee
commit f92d355614
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 5 additions and 2 deletions

View File

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

View File

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