From 4cacb4b989192e047b219f2bace7c1351501e8c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A5=96=E5=BB=BA?= Date: Wed, 25 May 2022 09:58:32 +0800 Subject: [PATCH] fix exec cmd in vpc nat gateway (#1556) --- dist/images/vpcnatgateway/nat-gateway.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/images/vpcnatgateway/nat-gateway.sh b/dist/images/vpcnatgateway/nat-gateway.sh index 9bbe7f3cb10..25c1d327df4 100644 --- a/dist/images/vpcnatgateway/nat-gateway.sh +++ b/dist/images/vpcnatgateway/nat-gateway.sh @@ -8,7 +8,7 @@ function exec_cmd() { ret=$? if [ $ret -ne 0 ]; then echo "failed to exec \"$cmd\"" - exit $1 + exit $ret fi }