blob: 66c9590f1adb059c502adf0e2343f57eb4554d1c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
# Run a command and print a string to stdout showing pass/fail
"$@"
ex=$?
case $ex in
0) op='true' ;;
*) op='false' ;;
esac
printf '%s\n' "$op"
exit "$ex"
|