Fix incorrect documentation in deploy.sh

This commit is contained in:
Robert Lord 2016-11-16 12:49:03 -06:00
parent 33515061b7
commit e8e2e5e144

View file

@ -15,20 +15,7 @@ Options:
deploy branch. deploy branch.
-n, --no-hash Don't append the source commit's hash to the deploy -n, --no-hash Don't append the source commit's hash to the deploy
commit's message. commit's message.
-c, --config-file PATH Override default & environment variables' values "
with those in set in the file at 'PATH'. Must be the
first option specified.
Variables:
GIT_DEPLOY_DIR Folder path containing the files to deploy.
GIT_DEPLOY_BRANCH Commit deployable files to this branch.
GIT_DEPLOY_REPO Push the deploy branch to this repository.
These variables have default values defined in the script. The defaults can be
overridden by environment variables. Any environment variables are overridden
by values set in a '.env' file (if it exists), and in turn by those set in a
file specified by the '--config-file' option."
bundle exec middleman build --clean bundle exec middleman build --clean
@ -38,12 +25,6 @@ parse_args() {
source .env source .env
fi fi
# Set args from file specified on the command-line.
if [[ $1 = "-c" || $1 = "--config-file" ]]; then
source "$2"
shift 2
fi
# Parse arg flags # Parse arg flags
# If something is exposed as an environment variable, set/overwrite it # If something is exposed as an environment variable, set/overwrite it
# here. Otherwise, set/overwrite the internal variable instead. # here. Otherwise, set/overwrite the internal variable instead.