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 12, 2024
1 parent aa0fb4e commit ca1dc96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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

0 comments on commit ca1dc96

Please sign in to comment.