diff options
author | Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at> | 2022-04-28 17:28:21 +0200 |
---|---|---|
committer | Simon Steinbeiß <simon.steinbeiss@elfenbeinturm.at> | 2022-04-28 18:11:33 +0200 |
commit | e1918dd85d47b3f896569b5aa5fa279a96ef0b20 (patch) | |
tree | 76f23521f3ce9200e7aa0ffb72d2d580715f70f2 /svgtopng | |
parent | b7e5eeb35d6a39bd4a69d6d455d4b4afeb6d2029 (diff) | |
download | elementary-xfce-e1918dd85d47b3f896569b5aa5fa279a96ef0b20.tar.gz |
Add GitHub action to test for dangling symlinks
Create a 'make test' target that skips the png optimization because that
would be a waste of time in CI. Also the pngtheme.sh script now fails if
dangling symlinks are detected.
Diffstat (limited to 'svgtopng')
-rwxr-xr-x | svgtopng/pngtheme.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svgtopng/pngtheme.sh b/svgtopng/pngtheme.sh index 6f536855..28474677 100755 --- a/svgtopng/pngtheme.sh +++ b/svgtopng/pngtheme.sh @@ -28,4 +28,7 @@ find "$icondir" -iname '*.svg' -not \( -wholename "*/scalable/*" -o -wholename " #ignore the output if the theme depends on another one (e.g. elementary-xfce-dark needs to be converted before elementary-xfce) echo " * Checking dangling symlinks" -find -L "$icondir" -type l -exec /bin/ls -go {} \; +if find -L "elementary-xfce" -type l -exec /bin/ls -go {} \; | grep .; then + echo "Found some dangling symlinks, please go fix those."; + exit 1; +fi |