File debian.postinst of Package geant4.11.0
#/bin/sh
G4ConfigFolder="/opt/geant4/geant4-multi_config/"
G4ConfigFileName="geant4.11.0"
if [[ $(ls "${G4ConfigFolder}${G4ConfigFileName}.sh" 2>/dev/null) && ! $(grep source /etc/bash.bashrc | grep ${G4ConfigFileName}) ]] ; then
echo 'source ${G4ConfigFolder}${G4ConfigFileName}.sh' >> /etc/bash.bashrc
fi
if [[ $(ls "${G4ConfigFolder}${G4ConfigFileName}.csh" 2>/dev/null) && ! $(grep source /etc/csh.cshrc | grep ${G4ConfigFileName}) ]] ; then
echo 'source ${G4ConfigFolder}${G4ConfigFileName}.csh' >> /etc/csh.cshrc
fi
unset G4ConfigFolder
unset G4ConfigFileName