Skip to content

Commit

Permalink
ci: Don't chmod symlinks
Browse files Browse the repository at this point in the history
Either the symlink is broken and `chmod` will complain, or the symlink
works and points to within the root dir passed to `find` and so will be
caught anyway. (This then makes sure we also don't somehow `chmod` a
target outside the root dir we care about).
  • Loading branch information
jlebon authored and cgwalters committed Sep 10, 2018
1 parent ede112f commit eb6b80c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion centos-ci/run-rdgo-rsync
Expand Up @@ -15,7 +15,7 @@ fi

for v in rdgo; do
sudo chown -R -h $USER:$USER ${v}/
find ${v}/ -exec chmod a+rX {} +
find ${v}/ ! -type l -exec chmod a+rX {} +
rsync --delete --stats -a ${v}/ sig-atomic@artifacts.ci.centos.org::sig-atomic/${build}/${v}/
done

Expand Down
2 changes: 1 addition & 1 deletion centos-ci/run-treecompose
Expand Up @@ -37,6 +37,6 @@ ostree --repo=ostree/repo summary -u

for v in ostree; do
sudo chown -R -h $USER:$USER ${v}/
find ${v}/ -exec chmod a+rX {} +
find ${v}/ ! -type l -exec chmod a+rX {} +
rsync --delete --stats -a ${v}/ sig-atomic@artifacts.ci.centos.org::sig-atomic/${build}/${v}/
done

0 comments on commit eb6b80c

Please sign in to comment.