]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
Don't assume /usr/games; use the same path as what rot13 was found at
authoratatat <atatat@NetBSD.org>
Sat, 9 Apr 2005 02:02:15 +0000 (02:02 +0000)
committeratatat <atatat@NetBSD.org>
Sat, 9 Apr 2005 02:02:15 +0000 (02:02 +0000)
to run caesar.

caesar/rot13.sh

index d00d385f2ddbce26d3849b8b79788278226a914b..005ef8d03305b4b22b1323cbc7c4ac8af183a34f 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: rot13.sh,v 1.6 2000/04/24 15:42:40 simonb Exp $
+#      $NetBSD: rot13.sh,v 1.7 2005/04/09 02:02:15 atatat Exp $
 #
 # Copyright (c) 1992, 1993
 #      The Regents of the University of California.  All rights reserved.
@@ -35,4 +35,5 @@
 #      @(#)rot13.sh    8.1 (Berkeley) 5/31/93
 #
 
-exec /usr/games/caesar 13 "$@"
+games="$(dirname $0)"
+exec "$games/caesar" 13 "$@"