diff options
-rwxr-xr-x | w3watch | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -51,11 +51,11 @@ edit() { } list() { - grep -v '^#' "${CONFIGFILE}" + grep '^[^#]' "${CONFIGFILE}" } check() { - grep -v '^#' "${CONFIGFILE}" | while read line; do + grep '^[^#]' "${CONFIGFILE}" | while read line; do data=(${line}) url="${data[0]}" filter="${data[@]:1}" @@ -97,7 +97,7 @@ collectGarbage() { for cacheEntry in "${CACHEDIR}/"*; do cacheSum=$(basename "$cacheEntry") - grep -v '^#' "${CONFIGFILE}" | while read configEntry; do + grep '^[^#]' "${CONFIGFILE}" | while read configEntry; do configSum=$(echo "$configEntry" | sha1sum | awk '{print $1;}') if [ "$cacheSum" == "$configSum" ]; then |