diff --git a/tools/find-unused-css b/tools/find-unused-css index d5e90e1c6c..e79c9e13aa 100755 --- a/tools/find-unused-css +++ b/tools/find-unused-css @@ -1,8 +1,8 @@ #!/usr/bin/env bash # Hackish tool for attempting to find unused IDs / classes in our CSS -for n in $(perl -lne 'print $1 while /[#.]([a-zA-Z0-9_-]+)/g' static/styles/zulip.css | sort -u); do - if [ "$(git grep "$n" | grep -cv '^static/styles/zulip.css')" -eq 0 ]; then +for n in $(perl -lne 'print $1 while /[#.]([a-zA-Z0-9_-]+)/g' static/styles/zulip.scss | sort -u); do + if [ "$(git grep "$n" | grep -cv '^static/styles/zulip.scss')" -eq 0 ]; then echo "$n" fi done