mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-28 00:09:29 +00:00
fix(packaging): Check if there are sh files in usr/share/doc/sogo before applying chmod. Fixes partially #5698
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user