Skip to content

Commit 48a92ae

Browse files
authored
Merge pull request #289 from kzys/clean-tree
Remove root-owned files
2 parents be15f04 + 90c1036 commit 48a92ae

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.buildkite/hooks/pre-checkout

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#! /bin/sh
2+
set -euo pipefail
3+
4+
find . -user root -print0 | xargs -0 sudo rm -rf '{}'

.buildkite/hooks/pre-exit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
2+
set -euo pipefail
23

3-
sudo rm -rf testdata/logs
4+
find . -user root -print0 | xargs -0 sudo rm -rf '{}'

0 commit comments

Comments
 (0)