Files
openvino/scripts/demo/utils.sh
Artyom Anokhov 09192b804e [OpenVINO scripts] Fixed *.sh files index from 644 to 755 (#664)
* Fixed *.sh files index from 644 to 755

* Added convert.py executable permission
2020-05-29 13:50:17 +03:00

17 lines
328 B
Bash
Executable File

error() {
local code="${3:-1}"
if [[ -n "$2" ]]; then
echo "Error on or near line $1: $2; exiting with status ${code}"
else
echo "Error on or near line $1; exiting with status ${code}"
fi
exit "${code}"
}
print_and_run() {
printf 'Run'
printf ' %q' "$@"
printf '\n\n'
"$@"
}