rpmrebuild/fix-errors-found-from-shellcheck-scan.patch
dongyuzhen 635c3f3a38 fix errors found from shellcheck scan
(cherry picked from commit 6aba469d3de293266f8e12238331489c0922e36c)
2024-01-15 14:07:18 +08:00

40 lines
1.0 KiB
Diff

From 731121ce199655c643ad8bbbec01a4d0efd9fa96 Mon Sep 17 00:00:00 2001
From: licunlong1 <licunlong1@huawei.com>
Date: Wed, 7 Sep 2022 17:09:00 +0800
Subject: [PATCH] fix errors found from shellcheck scan
---
plugins/demofiles.sh | 2 +-
rpmrebuild.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/demofiles.sh b/plugins/demofiles.sh
index 7d3f029..7511fd9 100755
--- a/plugins/demofiles.sh
+++ b/plugins/demofiles.sh
@@ -40,7 +40,7 @@ function syntaxe () {
###############################################################################
# test for arguments
-while [[ $ 1 ]]
+while [[ $1 ]]
do
case $1 in
-h | --help )
diff --git a/rpmrebuild.sh b/rpmrebuild.sh
index 1747e95..0f87963 100755
--- a/rpmrebuild.sh
+++ b/rpmrebuild.sh
@@ -507,7 +507,7 @@ function Main
CommandLineParsing "$@" || return
[ "x$NEED_EXIT" = "x" ] || return $NEED_EXIT
- Debug "rpmrebuild version $VERSION : $@"
+ Debug "rpmrebuild version $VERSION : $*"
check_i18ndomains
--
2.33.0