Skip to content

Commit

Permalink
Retest sudo if we fiddle directory perms.
Browse files Browse the repository at this point in the history
  • Loading branch information
daztucker committed Oct 30, 2023
1 parent c2260f4 commit de23cdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/setup_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ fi
# https://github.com/actions/runner-images/issues/6106
if [ ! -z "$SUDO" ] && ! "$SUDO" -u nobody test -x ~; then
echo ~ is not executable by nobody, adding perms.
chmod go+x ~
chmod go+x ~ `dirname ~`
echo Retesting sudo -S
(cd / && "$SUDO" -u nobody -S id </dev/null)
fi

if [ "${TARGETS}" = "kitchensink" ]; then
Expand Down

0 comments on commit de23cdf

Please sign in to comment.