awips2/rpms/common/environment/awips2-gfesuite/profile.d/awips2GFESuite.sh

22 lines
380 B
Bash
Raw Normal View History

2022-05-05 12:34:50 -05:00
#!/bin/bash
if [ $(id -u) -eq 0 -a ! -v A2LIBS ]; then
return;
fi
GFESUITE_PATH="/awips2/GFESuite/bin"
# Verify existence
if [ ! -d ${GFESUITE_PATH} ]; then
return
fi
# Ensure that it is not already in the path
CHECK_PATH=`echo ${PATH} | grep ${GFESUITE_PATH}`
if [ ! "${CHECK_PATH}" = "" ]; then
return
fi
# Add it to the path
export PATH=${GFESUITE_PATH}:${PATH}