mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-09-10 19:15:25 +02:00
[CORE] chore: improve helpers script
This commit is contained in:
@@ -36,6 +36,14 @@ if [[ $usesubmodule != 'n' ]]; then
|
|||||||
createFiles $(pwd)/latex-helpers
|
createFiles $(pwd)/latex-helpers
|
||||||
else
|
else
|
||||||
read -e -p "Where are the helper files located (absolute path to folder only, tab-completion enabled)? " helperpath
|
read -e -p "Where are the helper files located (absolute path to folder only, tab-completion enabled)? " helperpath
|
||||||
|
|
||||||
|
if [[ ${dir:0:1} == '/' ]]; then
|
||||||
createFiles $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!"
|
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
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user