mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 11:20:27 -06:00
15 lines
258 B
Bash
Executable File
15 lines
258 B
Bash
Executable File
#!/bin/bash
|
|
function exit_if_fail {
|
|
command=$@
|
|
echo "Executing '$command'"
|
|
eval $command
|
|
rc=$?
|
|
if [ $rc -ne 0 ]; then
|
|
echo "'$command' returned $rc."
|
|
exit $rc
|
|
fi
|
|
}
|
|
|
|
exit_if_fail npm run test
|
|
exit_if_fail npm run build
|