diff --git a/pkgs/by-name/sane-scripts/src/sane-deadlines b/pkgs/by-name/sane-scripts/src/sane-deadlines index bfc10fb8a..1a40c553b 100755 --- a/pkgs/by-name/sane-scripts/src/sane-deadlines +++ b/pkgs/by-name/sane-scripts/src/sane-deadlines @@ -26,7 +26,12 @@ if ! test -f "$deadlines" { var now=$(date +%s) for line in ($(cat "$deadlines") => split(u'\n')) { - # parse line + if (line === "" or line => startsWith("#")) { + # ignore comments + continue + } + + # parse normal line var deadline_field=$(echo "$line" | cut -f 1) var threshold_field=$(echo "$line" | cut -f 2) var description_field=$(echo "$line" | cut -f 3)