Changeset 39479


Ignore:
Timestamp:
Oct 10, 2009, 10:39:25 PM (15 years ago)
Author:
hamish
Message:

don't delay if wish isn't running

File:
1 edited

Legend:

Unmodified
Added
Removed
  • grass/branches/develbranch_6/lib/init/init.sh

    r39462 r39479  
    10231023# Attempt to close any open gis.m instances.
    10241024# Will work only on some systems, still has no harm to others
    1025 if [ $TCLTKGRASSBASE ] ; then
     1025# do Mac and MSys have pgrep? if [ -x `which pgrep` ] && [ `pgrep -c  ... ] ; then
     1026if [ -n "$TCLTKGRASSBASE" ] && [ `pgrep -c $GRASS_WISH` -ge 1 ] ; then
    10261027        echo "Closing open gis.m sessions....."
    10271028        echo 'foreach gwin [lsearch -all -inline [winfo interps] gm_tcl*] {
    10281029                catch {send -async $gwin Gm::remoteExit $env(GIS_LOCK)}
    10291030        }
    1030         exit' | $GRASS_WISH >/dev/null 2>&1
     1031        exit' | "$GRASS_WISH" #>/dev/null 2>&1
    10311032fi
    10321033
Note: See TracChangeset for help on using the changeset viewer.