While I do not agree with _every_ style change, this will force Dokku to have consistent formatting across all shell scripts, which is arguably a Good Thing™. The command used to reprocess everything is: ```shell shfmt -l -bn -ci -i 2 -w . ```
20 lines
497 B
Bash
Executable File
20 lines
497 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
source "$PLUGIN_AVAILABLE_PATH/apps/internal-functions"
|
|
|
|
apps_lock_cmd() {
|
|
declare desc="locks an app for deployment"
|
|
declare cmd="apps:lock"
|
|
[[ "$1" == "$cmd" ]] && shift 1
|
|
declare APP="$1"
|
|
verify_app_name "$APP"
|
|
|
|
touch "$DOKKU_ROOT/$APP/.deploy.lock" || dokku_log_fail "Unable to create deploy lock"
|
|
|
|
dokku_log_info1 "Deploy lock created"
|
|
}
|
|
|
|
apps_lock_cmd "$@"
|