Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
wordops-management: Remove unnecessary if check
Browse files Browse the repository at this point in the history
  • Loading branch information
kreatoo committed May 15, 2024
1 parent e947db5 commit e1f3521
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions monocloud/wordops-management.sh
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,8 @@ save_fact() {
local sftp_pass=$(echo $site_facts | jq -r ".[$i].sftp_pass")

if [[ "$CRON_MODE" != "1" ]]; then
if [[ -z "$project_name" ]]; then
read -p "$(echo -e "$color_yellow[ ???? ] Do you want to update/add Project name for $web_url? (y/N): ")" question
[[ "$question" == "y" ]] && read -p "$(echo -e "$color_yellow[ ???? ] Project name for $web_url: ")" project_name
fi
read -p "$(echo -e "$color_yellow[ ???? ] Do you want to update/add Project name for $web_url? (y/N): ")" question
[[ "$question" == "y" ]] && read -p "$(echo -e "$color_yellow[ ???? ] Project name for $web_url: ")" project_name
if [[ "$site_type" == "WordPress" ]]; then
echo -e "$color_blue[ INFO ] WordPress site detected."
read -p "$(echo -e "$color_yellow[ ???? ] Do you want to update WordPress admin URL, username and password for $web_url? (y/N): ")" question
Expand Down

0 comments on commit e1f3521

Please sign in to comment.