diff options
-rwxr-xr-x | bin/fdpsh | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -11,13 +11,16 @@ # accepted from stdin. ######################################################################## ME=`basename $0` -FDPBINDIR=`dirname $0` USAGE="usage: ${ME} [-c cmd] [file [arg..]]" +# Figure out absolute pathname to where we live +FDPBINDIR=`dirname $0` +case "${FDPBINDIR}" in +/* ) ;; +* ) FDPBINDIR=`/bin/pwd`/${FDPBINDIR};; +esac # PATH=${FDPBINDIR}:${PATH} export PATH -# This change keeps pathnames from growing out of control -FDPDIR=$(pushd ${FDPBINDIR}/../.. 2>&1 >/dev/null \ - && pwd && popd 2>&1 >/dev/null) export FDPDIR +FDPDIR=${FDPBINDIR}/../.. export FDPDIR SHELL=${FDPBINDIR}/${ME} export SHELL # FDPLOG=/tmp/fdpsh.log |