mirror of
https://github.com/bitwarden/self-host.git
synced 2026-06-27 13:55:46 +00:00
BRE-1893 fix(marketplace): guard setup wizard against non-interactive shells (#520)
This commit is contained in:
@@ -4,6 +4,11 @@
|
||||
# Runs once on first interactive login to select the deployment edition.
|
||||
#
|
||||
|
||||
# Don't run the interactive wizard in a non-interactive session
|
||||
if [ ! -t 0 ] || [ ! -t 1 ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cat <<'EOF'
|
||||
|
||||
################################################################################
|
||||
@@ -30,7 +35,7 @@ cat <<'EOF'
|
||||
EOF
|
||||
|
||||
while true; do
|
||||
read -rp " Enter selection [1 or 2]: " SELECTION
|
||||
read -rp " Enter selection [1 or 2]: " SELECTION || exit 0
|
||||
case "$SELECTION" in
|
||||
1)
|
||||
EDITION="standard"
|
||||
|
||||
Reference in New Issue
Block a user