SOLARIS_Analysis/SOLARIS.sh

23 lines
404 B
Bash
Raw Normal View History

2023-03-28 17:09:58 -04:00
#=================== Main
unset SOLARISSYS
SOURCE=${BASH_ARGV[0]}
PCName=$(uname -n)
if [ $(uname -n) == "solaris-daq" ]; then
SOLARISSYS=~/Analysis
else
if [ $(pwd) == $HOME ]; then
SOLARISSYS=$(dirname ${SOURCE})
if [[ ${SOLARISSYS} == *"$HOME"* ]]; then
dummpy=0
else
SOLARISSYS=${HOME}/$SOLARISSYS
fi
else
SOLARISSYS=$(pwd)
fi
fi
export SOLARISSYS