git-gui: Don't delete send on Windows as it doesn't exist
authorShawn O. Pearce <spearce@spearce.org>
Tue, 11 Sep 2007 17:37:45 +0000 (13:37 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 11 Sep 2007 22:57:18 +0000 (18:57 -0400)
The Windows port of Tk does not have the send command so we
cannot delete it from our global namespace, but the Mac OS
X and X11 ports do have it.  Switching this delete attempt
into a catch makes send go away, or stay away.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh

index 26eb5ac30947235c11490ea5d396809e9119bb71..e221d5b511dbcbed5c6142634810d98ba08e2449 100755 (executable)
@@ -42,7 +42,7 @@ if {[catch {package require Tcl 8.4} err]
        exit 1
 }
 
-rename send {} ; # What an evil concept...
+catch {rename send {}} ; # What an evil concept...
 
 ######################################################################
 ##