Adding comments and minor changes
This commit is contained in:
parent
07a1488abe
commit
85273c9f4d
22
qsgen2
22
qsgen2
@ -42,7 +42,7 @@
|
|||||||
###################################################################################################
|
###################################################################################################
|
||||||
# export blog_in_index=false
|
# export blog_in_index=false
|
||||||
|
|
||||||
VERSION="1.9.9.1 alpha" # Sun-2024-01-28
|
VERSION="1.9.9.1 alpha" # Mon-2024-01-29
|
||||||
QSGEN="Quick Site Generator"
|
QSGEN="Quick Site Generator"
|
||||||
|
|
||||||
# Set to true or false
|
# Set to true or false
|
||||||
@ -50,34 +50,30 @@ QSGEN="Quick Site Generator"
|
|||||||
debug=true
|
debug=true
|
||||||
|
|
||||||
function include () {
|
function include () {
|
||||||
|
|
||||||
|
# This function is used to include other functions that will normally be in
|
||||||
|
# ${HOME}/bin/include/
|
||||||
|
|
||||||
local inc_file
|
|
||||||
# Edit this path to reflect your installation
|
# Edit this path to reflect your installation
|
||||||
inc_file=${HOME}/bin/include/${1}.inc
|
local inc_file=${HOME}/bin/include/${1}.inc
|
||||||
if [[ ! -f ${inc_file} ]]; then
|
if [[ ! -f ${inc_file} ]]; then
|
||||||
local inc_opt
|
local inc_opt=$( echo ${1} | cut -d\/ -f2 )
|
||||||
inc_opt=$( echo ${1} | cut -d\/ -f2 )
|
echo "Supplied option \"${inc_opt}\" is not a valid include."
|
||||||
echo "Supplied option \"${inc_opt}\" is not valid."
|
|
||||||
echo "Not critical. Will continue and use the default \"--with=clean,addons\"."
|
|
||||||
else
|
else
|
||||||
builtin source ${inc_file} ${2}
|
builtin source ${inc_file} ${2}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Including some colors to the script
|
||||||
include common/colors
|
include common/colors
|
||||||
|
|
||||||
echo "${magenta}${QSGEN} ${VERSION}${end}"
|
echo "${magenta}${QSGEN} ${VERSION}${end}"
|
||||||
|
|
||||||
# Pre-release exit
|
|
||||||
if (${debug}); then
|
|
||||||
# echo "${red}Not yet ready. Exiting.${end}"
|
|
||||||
# exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ${1} == "version" ]] || [[ ${1} == "-v" ]] || [[ ${1} == "--version" ]]; then
|
if [[ ${1} == "version" ]] || [[ ${1} == "-v" ]] || [[ ${1} == "--version" ]]; then
|
||||||
echo "${yellow}- Created by kekePower - 2018-2024${end}"
|
echo "${yellow}- Created by kekePower - 2018-2024${end}"
|
||||||
echo "${yellow}- https://github.com/kekePower/qsgen2/${end}"
|
echo "${yellow}- https://github.com/kekePower/qsgen2/${end}"
|
||||||
|
echo "\n${yellow} - See '${0:t} help' for more information."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user