From c604b2c1003e29edb0a0194fe84cdae87ece9c1c Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Wed, 5 Aug 2026 11:02:54 +0200 Subject: [PATCH] [CORE] chore: improve helpers script --- setup.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 8765ca6..b4ab7fa 100755 --- a/setup.sh +++ b/setup.sh @@ -36,6 +36,14 @@ if [[ $usesubmodule != 'n' ]]; then createFiles $(pwd)/latex-helpers else read -e -p "Where are the helper files located (absolute path to folder only, tab-completion enabled)? " helperpath - createFiles $helperpath - echo "Helpers set up. You may experience issues if you have not entered an absolute path. If so, simply rerun this script to regenerate the files!" + + if [[ ${dir:0:1} == '/' ]]; then + createFiles $helperpath + else + echo "Note: You did not enter an absolute path, it was expanded automatically" + createFiles $(readlink -f $(pwd)/$helperpath) + fi + echo " + => If you entered also the file name, rerun this script, the compile will fail in that case. + " fi