chore(common/models): minor tweaks per review

This commit is contained in:
Joshua A. Horton 2022-10-05 09:04:23 +07:00
parent d97b1eba3c
commit e347aeabfe
4 changed files with 6 additions and 10 deletions

View file

@ -1,4 +1 @@
The presence of this file tells CI to use the new builder_ style parameters for build.sh.
Once all branches for 16.0+ are updated to merge the chore/web/more-script-updates branch, then we
can remove this file and the corresponding bash test branches in CI.
The presence of this file tells CI to use the new builder_ style parameters for build.sh and unit_tests/test.sh.

View file

@ -81,9 +81,7 @@ fi
# A nice, extensible method for -clean operations. Add to this as necessary.
do_clean() {
if [ -d $LMLAYER_OUTPUT ]; then
rm -rf "$LMLAYER_OUTPUT"
fi
rm -rf "$LMLAYER_OUTPUT"
}
CLEANED=

View file

@ -7,10 +7,9 @@ THIS_SCRIPT="$(greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null || readlink -f "${BA
. "$KEYMAN_ROOT/resources/build/build-utils-ci.inc.sh"
. "$KEYMAN_ROOT/resources/shellHelperFunctions.sh"
SCRIPT_ROOT="$(dirname "$THIS_SCRIPT")"
# This script runs from its own folder
cd "$SCRIPT_ROOT"
cd "$THIS_SCRIPT_PATH"
################################ Main script ################################

View file

@ -189,7 +189,9 @@ _builder_failure_trap() {
builder_finish_action failure $action $target
# Ensure that the exit code propagates fully.
# Make 100% sure that the exit code chains fully.
# Without this, nested scripts have failed to chain errors from npm calls past the script
# that directly executed the failed npm command.
exit $trappedExitCode
fi
}