Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (16 sloc) 450 Bytes
#!/bin/bash
# inspired by https://github.com/actions/bin/blob/master/sh/entrypoint.sh @ 2019 04 24
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
IFS=$'\n\t'
for cmd in "$@"; do
echo "Running '$cmd'..."
if sh -c "$cmd"; then
# no op
echo "Successfully ran '$cmd'"
else
exit_code=$?
echo "Failure running '$cmd', exited with $exit_code"
exit $exit_code
fi
done
You can’t perform that action at this time.