diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index f0497d257494420cfadba954db408ef889b1571a..5d3658b96c464c911993d7dce35e3ab67154db6c 100755 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -471,11 +471,11 @@ def package_finish(self): # Fix access permissions self.run_command(""" - find %(dst)s -type d | xargs chmod 755; - find %(dst)s -type f -perm 0700 | xargs chmod 0755; - find %(dst)s -type f -perm 0500 | xargs chmod 0555; - find %(dst)s -type f -perm 0600 | xargs chmod 0644; - find %(dst)s -type f -perm 0400 | xargs chmod 0444; + find %(dst)s -type d | xargs --no-run-if-empty chmod 755; + find %(dst)s -type f -perm 0700 | xargs --no-run-if-empty chmod 0755; + find %(dst)s -type f -perm 0500 | xargs --no-run-if-empty chmod 0555; + find %(dst)s -type f -perm 0600 | xargs --no-run-if-empty chmod 0644; + find %(dst)s -type f -perm 0400 | xargs --no-run-if-empty chmod 0444; true""" % {'dst':self.get_dst_prefix() }) # temporarily move directory tree so that it has the right name in the tarfile