diff options
| author | KunoiSayami <[email protected]> | 2022-10-31 03:17:19 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2022-10-31 03:17:19 +0800 |
| commit | 7ec83b0a1f6c26b142c6b2d08f26e0c9e38af6b7 (patch) | |
| tree | eead1f5996faa583c30706a3dc7ca9244ebc06f2 | |
| parent | 2d33d491f56cb8bdee40505b0f11a80cf11b439e (diff) | |
fix(script): Fix empty directory checker
Signed-off-by: KunoiSayami <[email protected]>
| -rwxr-xr-x | docker/initfolder.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/initfolder.sh b/docker/initfolder.sh index 6f88987..39a652f 100755 --- a/docker/initfolder.sh +++ b/docker/initfolder.sh @@ -2,9 +2,10 @@ if [ -f /home/build/repos/.placehold ]; then rm /home/build/repos/.placehold - find /home/build/repos -maxdepth 0 -empty -exec rm -rf {} \; fi +find /home/build/repos -maxdepth 0 -empty -exec rm -rf {} \; + if [ -d /home/build/repos ]; then chown -R build:build /home/build/repos fi
\ No newline at end of file |
