Expose errors from godep_restored to caller

Otherwise, if the function crashes, the user doesn't see the reason why
it happened.
k3s-v1.15.3
Ihar Hrachyshka 2018-12-06 08:04:07 -08:00
parent 0df79e4daa
commit 5e28d4e91e
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
kube::log::status "Restoring kubernetes godeps"
if kube::util::godep_restored >/dev/null 2>&1; then
if kube::util::godep_restored 2>&1; then
kube::log::status "Dependencies appear to be current - skipping download"
exit 0
fi