Skip to content

Commit

Permalink
Fix "Press any key..." so that it actually accepts any key
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Langowski <[email protected]>
  • Loading branch information
PLangowski committed Nov 18, 2024
1 parent 27e67cb commit 11dda7a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions include/dts-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@ main_menu_options(){
export DEPLOY_REPORT="false"
${CMD_DASHARO_HCL_REPORT}
fi
read -p "Press any key to continue."
read -n 1 -p "Press any key to continue."

return 0
;;
Expand Down Expand Up @@ -1581,15 +1581,15 @@ main_menu_options(){
# Use regular update process for everything else
${CMD_DASHARO_DEPLOY} update
fi
read -p "Press any key to continue."
read -n 1 -p "Press any key to continue."

return 0
;;
"${REST_FIRM_OPT}")
if check_if_dasharo; then
${CMD_DASHARO_DEPLOY} restore
fi
read -p "Press any key to continue."
read -n 1 -p "Press any key to continue."

return 0
;;
Expand All @@ -1615,7 +1615,7 @@ main_menu_options(){
# Parse installed packages for premium submenus:
parse_for_premium_submenu

read -p "Press any key to continue."
read -n 1 -p "Press any key to continue."
return 0
;;
"${DPP_SUBMENU_OPT}")
Expand Down Expand Up @@ -1668,7 +1668,7 @@ footer_options(){
systemctl start sshd.service
print_ok "Listening on IPs: $(ip -br -f inet a show scope global | grep UP | awk '{ print $3 }' | tr '\n' ' ')"
fi
read -p "Press any key to continue."
read -n 1 -p "Press any key to continue."

return 0
;;
Expand Down
2 changes: 1 addition & 1 deletion include/dts-subscription.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ check_for_dasharo_firmware() {
have access to Dasharo Firmware. If so, consider getting Dasharo\n
Subscription and improving security of your platform!"

read -p "Press any key to continue"
read -n 1 -p "Press any key to continue"
return 1
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/dasharo-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ update() {
print_warning "This is expected. Run OEM Factory Reset / Re-Ownership to finish deploying Heads."
;;
esac
read -p "Press any key to continue" # Make sure the user acknowledges.
read -n 1 -p "Press any key to continue" # Make sure the user acknowledges.
else
# Regular update flow
print_ok "Successfully updated Dasharo firmware."
Expand Down

0 comments on commit 11dda7a

Please sign in to comment.