Checks improved

This commit is contained in:
Martin Berghaus committed 2026-05-09 21:59:40 +02:00
1 parent ee114ee732
commit 00b920763e
30 files changed
+21 -20

No files matched your search

@@ -0,0 +1,10 @@
#!/bin/bash
_CURRENT_FILE='/etc/timezone'
#The file must be readable, then
#the number of lines containing "Europe/Berlin" must be one.
[ -r "${_CURRENT_FILE}" ] \
&& [ "1" == "$(cat "${_CURRENT_FILE}" | grep 'Europe/Berlin' | grep -c .)" ] \
&& exit 0
exit 1