react-native/scripts/circleci/exec_swallow_error.sh

14 lines
195 B
Bash
Executable File

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