qsgen2: Lots of fixes and better messages

This commit is contained in:
kekePower committed 2024-02-06 09:53:22 +01:00
1 parent 4f49610eab
commit 7789b060df
2 files changed
+33 -35

No files matched your search

+15
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
}