fix(packaging): Check if there are sh files in usr/share/doc/sogo before applying chmod. Fixes partially #5698

This commit is contained in:
smizrahi
2023-02-27 22:53:25 +01:00
parent 63548a84cf
commit 0d2f6d8c2a

View File

@@ -25,7 +25,7 @@ case "$1" in
# (they do not really belong there, we are violating Debian
# packaging guidelines, but OTOH moving these files now would
# break lots of setups)
if [ -d "/usr/share/doc/sogo" ]
if [ -d "/usr/share/doc/sogo" ] && [ $(ls -al /usr/share/doc/sogo/ | grep .sh | wc -l) -gt 0 ]
then
chmod a+x /usr/share/doc/sogo/*.sh
fi