diff --git a/.local/bin/print-status b/.local/bin/print-status index 8601d84..bc818d5 100755 --- a/.local/bin/print-status +++ b/.local/bin/print-status @@ -36,6 +36,11 @@ case "${battery_state}" in ;; esac -weather=$(cat /tmp/weather-report.txt) +weather_file="/tmp/weather-report.txt" +if [ -f ${weather_file} ]; then + weather=$(cat ${weather_file}) +else + weather="" +fi echo ${weather} 📆${today} ⏲${now} ${audio_symbol}${audio_volume}% ${battery_symbol}${battery}%