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 }