Skip to content

Commit

Permalink
scripts/dts: Wait for user input on exit 1
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Langowski <[email protected]>
  • Loading branch information
PLangowski committed Nov 19, 2024
1 parent 2944250 commit 7984afa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/dts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ source $DTS_SUBS

trap : 2
trap : 3
trap wait_for_input EXIT

wait_for_input() {
code=$?
if [[ $code -eq 1 ]]; then
read -p "Press Enter to continue."
fi
exit $code
}

while : ; do
clear
Expand Down

0 comments on commit 7984afa

Please sign in to comment.