From a142f0adcd72f2a6ad9449a3cecc4038da093ef1 Mon Sep 17 00:00:00 2001 From: wguanghao Date: Wed, 29 Nov 2023 14:49:55 +0800 Subject: [PATCH] fix rescan-scsi-bus.sh syntax error --- 0002-bugfix-sg3_utils-fix-syntax-error.patch | 2 +- sg3_utils.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/0002-bugfix-sg3_utils-fix-syntax-error.patch b/0002-bugfix-sg3_utils-fix-syntax-error.patch index cd75db4..8ebf170 100644 --- a/0002-bugfix-sg3_utils-fix-syntax-error.patch +++ b/0002-bugfix-sg3_utils-fix-syntax-error.patch @@ -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" diff --git a/sg3_utils.spec b/sg3_utils.spec index 0c6a161..a80599a 100644 --- a/sg3_utils.spec +++ b/sg3_utils.spec @@ -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 - 1.45-11 +- fix rescan-scsi-bus.sh syntax error + * Fri Nov 4 2022 Zhiqiang Liu - 1.45-10 - backport speed multipath scan patches from mainline -- Gitee