diff --git a/sh/notice b/sh/notice index ea78c51..309e2b1 100755 --- a/sh/notice +++ b/sh/notice @@ -333,7 +333,7 @@ __notice_upload() { __notice_read_conf() { # TODO: ensure conf file is unreadable by others? while read -r line; do - line="${line%%#*}" # strip comments + line="${line%%"#"*}" # strip comments line="${line#"${line%%[! ]*}"}" # strip left line="${line%"${line##*[! ]}"}" # strip right if [ "${line#gotify=}" != "$line" ]; then