File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ if [[ -n ${GITEA_RUNNER_UID:-} ]]; then
2626
2727 act_home=$( eval echo " ~$act_user " )
2828 chown " $GITEA_RUNNER_UID " " $act_home "
29- find " $act_home " -xdev -user " $effective_uid " -print0 | xargs -0 chown " $GITEA_RUNNER_UID "
29+ find " $act_home " -xdev -user " $effective_uid " -print0 | xargs --no-run-if-empty - 0 chown " $GITEA_RUNNER_UID "
3030 fi
3131fi
3232
@@ -38,7 +38,7 @@ if [[ -n ${GITEA_RUNNER_GID:-} ]]; then
3838
3939 act_home=$( eval echo " ~$act_user " )
4040 chown " :$GITEA_RUNNER_GID " " $act_home "
41- find " $act_home " -xdev -group " $effective_gid " -print0 | xargs -0 chgrp " $GITEA_RUNNER_GID "
41+ find " $act_home " -xdev -group " $effective_gid " -print0 | xargs --no-run-if-empty - 0 chgrp " $GITEA_RUNNER_GID "
4242 fi
4343fi
4444
You can’t perform that action at this time.
0 commit comments