Skip to content

Commit

Permalink
Update menu_env_update.sh
Browse files Browse the repository at this point in the history
fix unbound var
  • Loading branch information
Jos Kore Wingfield committed Dec 12, 2018
1 parent f00c1d9 commit 9c7eca4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .menus/menu_env_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
set -euo pipefail

menu_env_update() {
local PROMPT="Update value for ${KEY}."
local PROMPT
local KEY
local VAL

KEY=${1:-}
VAL=${2:-}
PROMPT="Update value for ${KEY}."

log 7 "Prompting for update of ${KEY}."
VAL=$(whiptail --title "Update .env" --inputbox "$PROMPT" 0 0 "$VAL" \
Expand Down

0 comments on commit 9c7eca4

Please sign in to comment.