diff options
Diffstat (limited to 'setup_texlive.sh')
-rwxr-xr-x | setup_texlive.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/setup_texlive.sh b/setup_texlive.sh index 5a553b0..f88782a 100755 --- a/setup_texlive.sh +++ b/setup_texlive.sh @@ -9,6 +9,12 @@ fi texlive_mount=$1 install_dir=$2 +if [[ ! $install_dir =~ ^/ ]] +then + echo "Please use an absolute path for the install directory." + exit 1 +fi + read -p "Installing TeX Live. This will *OVERWRITE* $install_dir. Continue? [y/N] " -r if [[ $REPLY =~ ^[Yy]$ ]] then @@ -46,4 +52,5 @@ then echo "run --define TEXLIVE_FULL_DIR=$install_dir" >> ~/.bazelrc else echo "Aborting." + exit 1 fi |