Further simplification
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
b763898ba6
commit
be9ed9ca19
32
plugin.sh
32
plugin.sh
|
@ -1,31 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ex
|
set -e
|
||||||
|
|
||||||
PLUGIN_COMMAND=${PLUGIN_COMMAND:?command is not set}
|
# shellcheck disable=SC2016
|
||||||
|
echo 'This plugin requires setting `commands` in your `.drone.yml`. Goodbye!'
|
||||||
ABRA=/root/.local/bin/abra
|
exit 1
|
||||||
|
|
||||||
output_versions(){
|
|
||||||
echo "--- start versions"
|
|
||||||
$ABRA -v
|
|
||||||
echo "--- end versions"
|
|
||||||
}
|
|
||||||
|
|
||||||
run_abra_cmd() {
|
|
||||||
echo "--- start command ---"
|
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
|
||||||
$ABRA $PLUGIN_COMMAND
|
|
||||||
|
|
||||||
echo "--- end command ---"
|
|
||||||
}
|
|
||||||
|
|
||||||
run_plugin() {
|
|
||||||
echo "--- start drone-abra ---"
|
|
||||||
output_versions
|
|
||||||
run_abra_cmd
|
|
||||||
echo "--- end drone-abra ---"
|
|
||||||
}
|
|
||||||
|
|
||||||
run_plugin
|
|
||||||
|
|
Loading…
Reference in New Issue