This commit is contained in:
committer
2024-05-26 18:58:48 -05:00
parent db3e99bd0a
commit e8a6f4f0bc

View File

@@ -79,15 +79,15 @@ rshift() {
if [ ${cmd} == "info" ] ; then
echo "{morning, day, evening, night, bedtime}"
elif [ ${cmd} == "show" ] ||
[ ${cmd} == "display" ]
; then
if [ -f "${temperature_file}" ] ; then
temperature=$(cat /tmp/temperature.txt)
else
temperature=n/a
fi
echo "${temperature}K"
# elif [ ${cmd} == "show" ] ||
# [ ${cmd} == "display" ]
# ; then
# if [ -f "${temperature_file}" ] ; then
# temperature=$(cat /tmp/temperature.txt)
# else
# temperature=n/a
# fi
# echo "${temperature}K"
elif
[ ${cmd} == "disable" ] ||
[ ${cmd} == "off" ]