Changeset 19156

Show
Ignore:
Timestamp:
21.04.2009 13:50:17 (10 years ago)
Author:
oranfry
Message:

space-proofing this script

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/setup.bash

    r18985 r19156  
     1#!/bin/bash 
    12# if this file is executed, /bin/sh is used, as we don't start with #! 
    23# this should work under ash, bash, zsh, ksh, sh style shells. 
     
    174175  # Override Imagemagick and Ghostscript paths to the bundled applications shipped with greenstone if they exists otherwise use default environment variables. 
    175176 
    176 if test -d $GSDLHOME/bin/$GSDLOS/imagemagick ; then 
     177if test -d "$GSDLHOME/bin/$GSDLOS/imagemagick" ; then 
    177178    PATH="$GSDLHOME/bin/$GSDLOS/imagemagick/bin:$PATH" 
    178179    export PATH 
     
    194195  # Note: Ghostscript is only bundled with Greenstone on Mac and Windows, not on Linux. The code below should be used only for the Darwin platform 
    195196  # for Windows please see setup.bat 
    196 if test -d $GSDLHOME/bin/$GSDLOS/ghostscript ; then 
     197if test -d "$GSDLHOME/bin/$GSDLOS/ghostscript" ; then 
    197198    PATH="$GSDLHOME/bin/$GSDLOS/ghostscript/bin":"$PATH" 
    198199    export PATH