[DebianGIS-dev] r2284 - packages/grass/trunk/debian

frankie at alioth.debian.org frankie at alioth.debian.org
Sun Jun 14 08:11:24 UTC 2009


Author: frankie
Date: 2009-06-14 08:11:23 +0000 (Sun, 14 Jun 2009)
New Revision: 2284

Modified:
   packages/grass/trunk/debian/x-grass
Log:
Minor changes for x-grass


Modified: packages/grass/trunk/debian/x-grass
===================================================================
--- packages/grass/trunk/debian/x-grass	2009-06-12 15:28:08 UTC (rev 2283)
+++ packages/grass/trunk/debian/x-grass	2009-06-14 08:11:23 UTC (rev 2284)
@@ -1,16 +1,16 @@
 #!/bin/sh
 #
-# This is a wrapper to call GRASS without a running xterm.
+# This is a wrapper to call GRASS without a running (x)terminal.
 #
 
-if [ "$DISPLAY" != "" ]; then
-	if [ $(tty) != "" ]; then
+if [ -n "$DISPLAY" ]; then
+	if [ -n "$(tty)" ]; then
 		exec /usr/bin/grass "$@"
 	else
 		exec x-terminal-emulator -e /bin/sh -c "/usr/bin/grass $@" 
 	fi
 else
-	if [ $(tty) != "" ]; then
+	if [ -n "$(tty)" ]; then
 		exec /usr/bin/grass "$@"
 	fi
 fi




More information about the Pkg-grass-devel mailing list