From d56da31ab88f6c3198a001233eb1e9f50fd7160a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=B8=E7=9B=8A=E9=94=8B?= <1095820+youyifeng@user.noreply.gitee.com> Date: Sat, 7 May 2022 09:21:05 +0000 Subject: [PATCH] =?UTF-8?q?update=20rpm/sysak-build.sh=EF=BC=8C=20fix=20pa?= =?UTF-8?q?rameter=20problem=20shell=E4=B8=AD=E5=87=BD=E6=95=B0=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=B8=8E=E5=87=BD=E6=95=B0=E5=8F=82=E6=95=B0=E4=B8=8D?= =?UTF-8?q?=E5=86=B2=E7=AA=81=EF=BC=8C=E6=AD=A4=E5=A4=84=E5=BA=94=E4=B8=BA?= =?UTF-8?q?$1=20$2=EF=BC=8C=E9=80=9A=E8=BF=87main=E4=BC=A0=E9=80=92?= =?UTF-8?q?=E8=B5=8B=E5=80=BC=E7=BB=99RPM=5FVERSION=20=E3=80=81RELEASE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 示例: ``` [root@X99F8D /tmp]# cat run.sh #!/bin/bash main() { echo "main : $1 $2" } echo "top : $1 $2 $3 $4" main $1 $2 $3 $4 [root@X99F8D /tmp]# ./run.sh 1 2 3 4 top : 1 2 3 4 main : 1 2 [root@X99F8D /tmp]# ``` --- rpm/sysak-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpm/sysak-build.sh b/rpm/sysak-build.sh index ae594685..25893091 100755 --- a/rpm/sysak-build.sh +++ b/rpm/sysak-build.sh @@ -85,4 +85,4 @@ main() { build_rpm } -main $3 $4 +main $1 $2 -- Gitee