mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-02-21 22:57:15 +00:00
verify scripts: preserve exit code
these scripts used the result variable pattern but then explicitly exited early with a hardcoded value ....
This commit is contained in:
@@ -49,5 +49,5 @@ else
|
||||
>&2 echo "See: test/images/agnhost/README.md"
|
||||
>&2 echo ""
|
||||
>&2 echo "You can reach out to https://git.k8s.io/community/sig-testing for help."
|
||||
exit 1
|
||||
fi
|
||||
exit $ret
|
||||
|
||||
@@ -238,7 +238,6 @@ else
|
||||
fi
|
||||
echo
|
||||
} >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# preserve the result
|
||||
|
||||
@@ -133,7 +133,6 @@ else
|
||||
echo 'See: https://github.com/koalaman/shellcheck/wiki/Ignore#ignoring-one-specific-instance-in-a-file'
|
||||
echo
|
||||
} >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# preserve the result
|
||||
|
||||
@@ -40,5 +40,5 @@ if [[ $ret -eq 0 ]]; then
|
||||
echo "${DIFFROOT} up to date."
|
||||
else
|
||||
echo "${DIFFROOT} is out of date. Please run hack/update-codegen.sh"
|
||||
exit 1
|
||||
fi
|
||||
exit $ret
|
||||
|
||||
@@ -40,5 +40,5 @@ if [[ $ret -eq 0 ]]; then
|
||||
echo "${DIFFROOT} up to date."
|
||||
else
|
||||
echo "${DIFFROOT} is out of date. Please run hack/update-codegen.sh"
|
||||
exit 1
|
||||
fi
|
||||
exit $ret
|
||||
|
||||
@@ -40,7 +40,7 @@ if [[ $ret -eq 0 ]]; then
|
||||
echo "${DIFFROOT} up to date."
|
||||
else
|
||||
echo "${DIFFROOT} is out of date. Please run hack/update-codegen.sh"
|
||||
exit 1
|
||||
exit $ret
|
||||
fi
|
||||
|
||||
# smoke test
|
||||
|
||||
@@ -40,5 +40,5 @@ if [[ $ret -eq 0 ]]; then
|
||||
echo "${DIFFROOT} up to date."
|
||||
else
|
||||
echo "${DIFFROOT} is out of date. Please run hack/update-codegen.sh"
|
||||
exit 1
|
||||
fi
|
||||
exit $ret
|
||||
|
||||
@@ -40,5 +40,5 @@ if [[ $ret -eq 0 ]]; then
|
||||
echo "${DIFFROOT} up to date."
|
||||
else
|
||||
echo "${DIFFROOT} is out of date. Please run hack/update-codegen.sh"
|
||||
exit 1
|
||||
fi
|
||||
exit $ret
|
||||
|
||||
@@ -40,5 +40,5 @@ if [[ $ret -eq 0 ]]; then
|
||||
echo "${DIFFROOT} up to date."
|
||||
else
|
||||
echo "${DIFFROOT} is out of date. Please run hack/update-codegen.sh"
|
||||
exit 1
|
||||
fi
|
||||
exit $ret
|
||||
|
||||
@@ -40,5 +40,5 @@ if [[ $ret -eq 0 ]]; then
|
||||
echo "${DIFFROOT} up to date."
|
||||
else
|
||||
echo "${DIFFROOT} is out of date. Please run hack/update-codegen.sh"
|
||||
exit 1
|
||||
fi
|
||||
exit $ret
|
||||
|
||||
Reference in New Issue
Block a user