This commit is contained in:
committer
2024-05-26 19:00:20 -05:00
parent df2ceecbaa
commit acc2a29804

View File

@@ -79,15 +79,14 @@ 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" ] ; then