Let prompts fall back to their default when there is no input

This commit is contained in:
MickLesk
2026-09-25 08:07:09 +02:00
parent c69359d704
commit c21365f204
52 changed files with 91 additions and 88 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >>~/.bash_profile
source ~/.bash_profile
msg_ok "Installed SQL Server Tools"
read -r -p "${TAB3}Do you want to run the SQL server setup now? (Later is also possible) <y/N>" prompt
read -r -p "${TAB3}Do you want to run the SQL server setup now? (Later is also possible) <y/N>" prompt || prompt=""
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
/opt/mssql/bin/mssql-conf setup
else