mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1204516 - Ignore missing directories when changing ownership of cache directories in build.sh. r=dustin
This commit is contained in:
parent
c0670ba6d7
commit
69de2419a1
@ -8,9 +8,11 @@ if [ $(id -u) = 0 ]; then
|
||||
# each of the caches we have mounted are owned by root, so update that ownership
|
||||
# to 'worker'
|
||||
for cache in /home/worker/.tc-vcs /home/worker/workspace /home/worker/tooltool-cache; do
|
||||
# -R probably isn't necessary forever, but it fixes some poisoned
|
||||
# caches for now
|
||||
chown -R worker:worker $cache
|
||||
if [ -d $cache ]; then
|
||||
# -R probably isn't necessary forever, but it fixes some poisoned
|
||||
# caches for now
|
||||
chown -R worker:worker $cache
|
||||
fi
|
||||
done
|
||||
|
||||
# ..then drop privileges by re-running this script
|
||||
|
Loading…
Reference in New Issue
Block a user