From ed7a8ae262bd6ae6687dffbaba46dbefb4fed8c5 Mon Sep 17 00:00:00 2001 From: Wenchao Hao Date: Thu, 17 Feb 2022 15:44:18 +0800 Subject: [PATCH] Fix grammar error in rescan-scsi-bus.sh Signed-off-by: Wenchao Hao (cherry picked from commit 6080c95e41d9ecf90ea7575e2ca52b4c3bab244c) --- 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..d2c7fac 100644 --- a/0002-bugfix-sg3_utils-fix-syntax-error.patch +++ b/0002-bugfix-sg3_utils-fix-syntax-error.patch @@ -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 diff --git a/sg3_utils.spec b/sg3_utils.spec index efe74a2..a27d2eb 100644 --- a/sg3_utils.spec +++ b/sg3_utils.spec @@ -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 -1.46-4 +- Fix grammar error in rescan-scsi-bus.sh + * Tue Feb 15 2022 Wenchao Hao -1.46-3 - Fix rescan-scsi-bus.sh -r remove valid disks -- Gitee