Merge pull request #1529 from pzula/update-config-set-help

Adds helpful information regarding whitespacing when setting config
This commit is contained in:
Jose Diaz-Gonzalez
2015-10-07 12:34:58 -04:00

View File

@@ -147,6 +147,7 @@ config_set() {
if [[ -z "${*:3}" ]]; then
echo "Usage: dokku config:set APP KEY1=VALUE1 [KEY2=VALUE2 ...]"
echo "Whitespaces need to be escaped, i.e. KEY=\"VAL\ WITH\ SPACES\""
echo "Must specify KEY and VALUE to set."
exit 1
fi
@@ -160,6 +161,7 @@ config_set() {
for var; do
if [[ $var != *"="* ]]; then
echo "Usage: dokku config:set APP KEY1=VALUE1 [KEY2=VALUE2 ...]"
echo "Whitespaces need to be escaped, i.e. KEY=\"VAL\ WITH\ SPACES\""
echo "Must specify KEY and VALUE to set."
exit 1
fi