Skip to content

Commit

Permalink
fix(scripts): Add error handling to buildroot setup
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Stewart <[email protected]>
  • Loading branch information
paralin committed Dec 6, 2023
1 parent 451239a commit 4372c0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/setup_workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x
if [ ! -d "$WORKSPACE_DIR" ] || [ ! -f "$WORKSPACE_DIR/Makefile" ]; then
# Setup the worktree
cd $BUILDROOT_DEFAULT_DIR
make O=$WORKSPACE_DIR defconfig
make O=$WORKSPACE_DIR defconfig || (echo "Buildroot setup failed, check for errors above." && exit 1)
cd - > /dev/null
fi
if [ ! -d "$SKIFF_WS_OVERRIDES_DIR" ]; then
Expand All @@ -14,4 +14,3 @@ fi

# Ensure that output symbolic links to the same folder.
ln -f -s $WORKSPACE_DIR $WORKSPACE_DIR/output

0 comments on commit 4372c0b

Please sign in to comment.