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 . ```
18 lines
450 B
Bash
Executable File
18 lines
450 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/config/functions"
|
|
|
|
dokku_run_cmd() {
|
|
declare desc="runs command in container based on app image"
|
|
declare cmd="run" APP="$2"
|
|
verify_app_name "$APP"
|
|
shift 2
|
|
|
|
local DOKKU_SCHEDULER=$(get_app_scheduler "$APP")
|
|
plugn trigger scheduler-run "$DOKKU_SCHEDULER" "$APP" "$@"
|
|
}
|
|
|
|
dokku_run_cmd "$@"
|