Add function for info texts (#43)
* Add function for info texts * Add missing text if no HDD/SSD sensors found.
This commit is contained in:
parent
9198ffe6cd
commit
cd9b2fb4c8
@ -38,8 +38,12 @@ function msgb {
|
|||||||
echo -e "\e[1m$1\e[0m"
|
echo -e "\e[1m$1\e[0m"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function info {
|
||||||
|
echo -e "\e[0;32m[info] $1\e[0m"
|
||||||
|
}
|
||||||
|
|
||||||
function warn {
|
function warn {
|
||||||
echo -e "\e[0;33m[warning] $1\e[0m"
|
echo -e "\e[0;93m[warning] $1\e[0m"
|
||||||
}
|
}
|
||||||
|
|
||||||
function err {
|
function err {
|
||||||
@ -668,9 +672,9 @@ Ext.define('PVE.mod.TempHelper', {\n\
|
|||||||
|
|
||||||
restart_proxy
|
restart_proxy
|
||||||
|
|
||||||
msg "Installation completed"
|
msg "Installation completed."
|
||||||
|
|
||||||
msg "Clear the browser cache to ensure all changes are visualized."
|
info "Clear the browser cache to ensure all changes are visualized."
|
||||||
else
|
else
|
||||||
warn "Sensor display items already added to the summary panel in \"$pvemanagerlibjs\"."
|
warn "Sensor display items already added to the summary panel in \"$pvemanagerlibjs\"."
|
||||||
fi
|
fi
|
||||||
@ -737,4 +741,4 @@ done
|
|||||||
# If no arguments were provided or all arguments have been processed, print the usage message
|
# If no arguments were provided or all arguments have been processed, print the usage message
|
||||||
if [[ $executed -eq 0 ]]; then
|
if [[ $executed -eq 0 ]]; then
|
||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user