[WIP] Initial commit for qsgen3
This commit is contained in:
19
docs/zsdoc/data/functions/qsgen2/_f_last_updated
Normal file
19
docs/zsdoc/data/functions/qsgen2/_f_last_updated
Normal file
@ -0,0 +1,19 @@
|
||||
if [[ ${globaldebug} == "true" ]]; then
|
||||
local debug=true
|
||||
else
|
||||
local debug=false
|
||||
fi
|
||||
local upd_msg="Last updated ${today} by <a href=\"https://blog.kekepower.com/qsgen2.html\">${QSGEN} ${VERSION}</a>"
|
||||
|
||||
if ${debug}; then
|
||||
_msg debug "${0:t}_msg_1" " ${1}"
|
||||
_msg debug "${0:t}_msg_2" " ${upd_msg}"
|
||||
fi
|
||||
local content="$(<${1})"
|
||||
content="${content//#updated/${upd_msg}}"
|
||||
|
||||
if [[ -f "${1}" ]]; then
|
||||
sed -i -e "s|#updated|${upd_msg}|" "${1}"
|
||||
else
|
||||
_msg debug "${0:t}_msg_3" " '${1}' " "${0:t}_msg_3.1"
|
||||
fi
|
Reference in New Issue
Block a user