From 65b86393c2221866ecfcc64333509e97c3d684ec Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Mon, 15 Apr 2024 15:17:47 +0200 Subject: [PATCH] Update build.sh --- build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 3e5ff23..7176e25 100644 --- a/build.sh +++ b/build.sh @@ -1,8 +1,6 @@ #!/bin/bash ARG=${1:-'--confirm'} -set -e - cd "$(dirname "${BASH_SOURCE[0]}")" # Clean-up from last build @@ -22,12 +20,16 @@ cp $poc_path ./source/main.c cp ./romfs/icon/nxdumptool.jpg ./romfs/icon/$poc_name.jpg +set -e + if [ ${ARG,,} != "--noconfirm" ]; then make BUILD_TYPE="$poc_name" -j$(nproc) else make BUILD_TYPE="$poc_name" -j8 PREFIX="ccache aarch64-none-elf-" fi +set +e + rm -f ./romfs/icon/$poc_name.jpg mv -f ./$poc_name.nro ./code_templates/tmp/$poc_name.nro