This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
The following commit(s) were added to refs/heads/main by this push:
new 23ce1aa Only change perms if necessary
23ce1aa is described below
commit 23ce1aab9f39162f1748f038046dbdbb2c63ff67
Author: Sebb <[email protected]>
AuthorDate: Fri Jan 23 11:30:42 2026 +0000
Only change perms if necessary
---
scripts/check-perms | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/check-perms b/scripts/check-perms
index c54a83a..f333d27 100755
--- a/scripts/check-perms
+++ b/scripts/check-perms
@@ -5,11 +5,11 @@ STATE_DIR="${STATE_DIR:-state}"
if [ -d "$STATE_DIR/hypercorn/secrets" ]
then
- find "$STATE_DIR/hypercorn/secrets" -type f -exec chmod 400 {} +
+ find "$STATE_DIR/hypercorn/secrets" -type f ! -perm 400 -exec chmod 400 {} +
fi
if [ -d "$STATE_DIR/secrets" ]
then
- find "$STATE_DIR/secrets" -type f ! -name "apptoken.txt" -exec chmod 400 {} +
- find "$STATE_DIR/secrets" -type f -name "apptoken.txt" -exec chmod 600 {} +
+ find "$STATE_DIR/secrets" -type f ! -name "apptoken.txt" ! -perm 400 -exec
chmod 400 {} +
+ find "$STATE_DIR/secrets" -type f -name "apptoken.txt" ! -perm 600 -exec
chmod 600 {} +
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]