This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set /p github-dir=%GITHUB_DIR_LOCATION% | |
if not exist %github-dir% ( | |
echo "GitHub folder is missing! Creating..." | |
mkdir "%github-dir%" 2>nul | |
) | |
cd "%github-dir%" | |
echo "Changed to GitHub directory" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Geant4 doesn't support zsh/ksh/etc. non-bash shells to source | |
# its enviromental configuration script in the "normal" bash-like way. | |
# Instead we have to change to Geant4's bin diretory and source the | |
# appropriate `geant4.sh` script from there. | |
# Suppose we installed Geant4 under the `${GEANT4_INSTALL}` directory | |
if [ -f ${GEANT4_INSTALL}/bin/geant4.sh ]; | |
then | |
cd ${GEANT4_INSTALL}/bin | |
source geant4.sh |