react-native/scripts/circleci/exec_swallow_error.sh

13 lines
204 B
Bash
Raw Normal View History

#!/bin/bash
# execute command
"$@"
# check status
STATUS=$?
if [ $STATUS == 0 ]; then
echo "Command " "$@" " completed successfully"
else
echo "Command " "$@" " exited with error status $STATUS"
fi