mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
4b16cd6cc8
* Build: introduce shellcheck Fixes #16198
14 lines
239 B
Bash
14 lines
239 B
Bash
#!/bin/bash
|
|
|
|
function exit_if_fail {
|
|
# shellcheck disable=SC2124
|
|
command=$@
|
|
echo "Executing '$command'"
|
|
eval "$command"
|
|
rc=$?
|
|
if [ $rc -ne 0 ]; then
|
|
echo "'$command' returned $rc."
|
|
exit $rc
|
|
fi
|
|
}
|