mirror of
https://github.com/dokku/dokku.git
synced 2025-12-25 08:19:22 +01:00
16 lines
404 B
Bash
Executable File
16 lines
404 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|
|
|
plugin_update_cmd() {
|
|
declare desc="updates plugin to optional committish and calls update plugin trigger via command line"
|
|
local cmd="plugin:update"
|
|
if [[ -n "$2" ]]; then
|
|
local PLUGIN="$2"
|
|
local PLUGIN_COMMITTISH="$3"
|
|
plugn update "$PLUGIN" "$PLUGIN_COMMITTISH"
|
|
fi
|
|
plugn trigger update
|
|
}
|
|
|
|
plugin_update_cmd "$@"
|