summaryrefslogtreecommitdiff
path: root/toru
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-02-18 14:44:22 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-02-18 14:44:22 +0100
commit54b6cb03b60d1834130fa289188e9f232fab5898 (patch)
treeb0d04247e136d84e2be01eea91d44d00c68d174e /toru
parentef12ca293c2a85fde729c39900fa2d481c8b42da (diff)
Show a useful error message if a dependency is not found.
Should stop the build, somehow doesn't.
Diffstat (limited to 'toru')
-rwxr-xr-xtoru3
1 files changed, 1 insertions, 2 deletions
diff --git a/toru b/toru
index e878b3a..766331b 100755
--- a/toru
+++ b/toru
@@ -297,8 +297,7 @@ while getopts 'haqfpum' arg; do
f) force=true ;;
u) commands+=(update);;
p) shift $(( OPTIND - 1 ))
- where_is "$1"
- exit $?;;
+ where_is "$1" || exit 1;;
m) commands+=(missing);;
esac