Skip to content

Commit

Permalink
fix (cli): Fix broken error handling in ./enola dev launch script
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Jun 29, 2024
1 parent 72c1eb4 commit a47d9f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions enola
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ CWD=$(pwd)
ROOT="$(realpath "$(dirname "$0")")"

cd "$ROOT"
LOG=$(mktemp)

if [ -x "$(command -v hashdir)" ]; then
mkdir -p "$ROOT"/.cache
Expand All @@ -39,12 +38,15 @@ else
DIFF=3
fi

LOG=$(mktemp)
if [ "$DIFF" -ne 0 ]; then
set +e
tools/distro/build-execjar.bash >"$LOG" 2>&1
exit_code="$?"
rm "$LOG"
set -e
else
exit_code=0
rm "$LOG"
fi

if [[ "$exit_code" == "0" ]]; then
Expand Down

0 comments on commit a47d9f2

Please sign in to comment.