mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 11:03:54 +00:00
/bin/sh and /usr/bin/env are the only two binaries that NixOS provides at a fixed path (outside a buildFHSUserEnv sandbox). This discussion was split from #11004. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
9 lines
302 B
Bash
Executable File
9 lines
302 B
Bash
Executable File
#!/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
|
|
echo "$n"
|
|
fi
|
|
done
|