Fix linting issues in scripts

This commit is contained in:
Ohad Livne 2025-06-04 22:46:01 +03:00
parent e3d5f15c00
commit c4952aad8f
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
7 changed files with 17 additions and 13 deletions

View file

@ -19,7 +19,7 @@ today=$(date +'%Y-%m-%d')
now=$(date +'%H:%M:%S')
hour=$(echo "${now}" | cut -d: -f1 -)
minute=$(echo "${now}" | cut -d: -f2 -)
if [ "${minute}" \< "30" ]; then
if [ "${minute}" -lt 30 ]; then
case "${hour}" in
"00"|"12") clock_face="🕛";;
"01"|"13") clock_face="🕐";;
@ -84,4 +84,4 @@ case "${battery_state}" in
;;
esac
echo ${recs} 🕹️${touchpad_active} 📆${today} ${clock_face}${now} ${audio_symbol}${audio_volume}% ${battery_symbol}${battery}%
echo "${recs} 🕹️${touchpad_active} 📆${today} ${clock_face}${now} ${audio_symbol}${audio_volume}% ${battery_symbol}${battery}%"