Typo, missing space before ] in previous commit caused shell syntax failure and incorrect restoration of time. Signed-off-by: Kevin Darbyshire-Bryant <[email protected]>
@@ -28,7 +28,7 @@ maxtime() {
local file newest
for file in $( find /etc -type f ! -path /etc/dnsmasq.time ) ; do
- [ -z "$newest" -o "$newest" -ot "$file"] && newest=$file
+ [ -z "$newest" -o "$newest" -ot "$file" ] && newest=$file
done
[ "$newest" ] && date -r "$newest" +%s
}