qsgen2: Lots of fixes and better messages

This commit is contained in:
2024-02-06 09:53:22 +01:00
parent 4f49610eab
commit 7789b060df
2 changed files with 33 additions and 35 deletions

15
include/common/include Normal file
View File

@ -0,0 +1,15 @@
function include() {
# This function is used to include other functions that will normally be in
# ${HOME}/bin/include/
# Edit this path to reflect your installation
local inc_file=${HOME}/bin/include/${1}.inc
if [[ ! -f ${inc_file} ]]; then
local inc_opt=$( echo ${1} | cut -d\/ -f2 )
echo "Supplied option \"${inc_opt}\" is not a valid include."
else
builtin source ${inc_file} ${2}
fi
}