fix rescan-scsi-bus.sh syntax error

This commit is contained in:
wguanghao 2023-11-29 14:49:55 +08:00
parent 1117c8827d
commit a142f0adcd
2 changed files with 5 additions and 2 deletions

View File

@ -29,7 +29,7 @@ index b1cbebc..25a5f2a 100755
[ $RC = 2 ] && [ "$RMB" = "1" ] && break
done
- if [ $ctr != 0 ] ; then
+ if [ $xctr != x0 ] ; then
+ if [ "$ctr" != 0 ] ; then
white_out
fi
# echo -e "\e[A\e[A\e[A${yellow}Test existence of $SGDEV = $RC ${norm} \n\n\n"

View File

@ -1,6 +1,6 @@
Name: sg3_utils
Version: 1.45
Release: 10
Release: 11
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
@ -79,6 +79,9 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la
%{_mandir}/man8/*
%changelog
* Wed Nov 29 2023 wuguanghao <wuguanghao3@huawei.com> - 1.45-11
- fix rescan-scsi-bus.sh syntax error
* Fri Nov 4 2022 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.45-10
- backport speed multipath scan patches from mainline