changeset 260:26f9c18b588c

opendiff-w: safer sanity check for opendiff
author Augie Fackler <durin42@gmail.com>
date Mon, 16 Aug 2010 11:16:44 -0500
parents e742cf5a748c
children a5ec16bba8a9
files unixSoft/bin/opendiff-w
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/unixSoft/bin/opendiff-w
+++ b/unixSoft/bin/opendiff-w
@@ -1,2 +1,3 @@
 #!/bin/sh
-opendiff "$@" | cat || exit 1
+which opendiff || exit 1
+opendiff "$@" | cat