Move subshell failure sooner
@@ -63,6 +63,9 @@ nvm install v6.10.2
pip install --user "wheel==${WHEEL_VERSION}" "twine==${TWINE_VERSION}"
)
+# If the sub shell failed, bail out now.
+[ "$?" -eq 0 ] || exit 1
+
# By default some tools are not on the PATH, let's fix that
# On OSX, the user folder that `pip` installs tools to is not on the
@@ -74,6 +77,3 @@ fi
# Add yarn to the $PATH
export PATH=$HOME/.yarn/bin:$PATH
-
-# If the sub shell failed, bail out now.
-[ "$?" -eq 0 ] || exit 1
