diff --git a/.github/workflows/rewrite.yml b/.github/workflows/rewrite.yml index d2656e0..32ce1f5 100644 --- a/.github/workflows/rewrite.yml +++ b/.github/workflows/rewrite.yml @@ -60,7 +60,7 @@ jobs: working-directory: nxdumptool run: | echo "nxdt_commit=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV - ./build.sh + ./build.sh --noconfirm #- name: Build nxdumptool-rewrite GUI binary # working-directory: nxdumptool diff --git a/build.sh b/build.sh index 553ccd0..b3c2863 100644 --- a/build.sh +++ b/build.sh @@ -1,4 +1,6 @@ #!/bin/bash +ARG=${1:-'--confirm'} + cd "$(dirname "${BASH_SOURCE[0]}")" # Clean-up from last build @@ -32,4 +34,6 @@ make clean_all rm -f ./source/main.c mv -f ./main.cpp ./source/main.cpp -read -rsp $'Press any key to continue...\n' -n 1 key +if [ ${ARG,,} != "--noconfirm" ]; then + read -rsp $'Press any key to continue...\n' -n 1 key +fi