|
@ -21,13 +21,13 @@ |
|
|
cd "$SDEROOT" |
|
|
cd "$SDEROOT" |
|
|
|
|
|
|
|
|
UG=$( stat -c %U:%G . ) |
|
|
UG=$( stat -c %U:%G . ) |
|
|
UGD=$( stat -c %U:%G download/ ) |
|
|
|
|
|
|
|
|
UGD=$( [ -d download/ ] && stat -c %U:%G download/ ) |
|
|
|
|
|
|
|
|
export LANG=C |
|
|
export LANG=C |
|
|
|
|
|
|
|
|
( |
|
|
( |
|
|
# accept luser downloads but staying hard-link friendly |
|
|
# accept luser downloads but staying hard-link friendly |
|
|
chown -v $UGD $( find download/ -type d 2> /dev/null ) |
|
|
|
|
|
chown -Rv $UG $( ls -1d * .git 2> /dev/null | |
|
|
|
|
|
|
|
|
find download/ -type d -exec chown -v "$UGD" '{}' \; 2> /dev/null |
|
|
|
|
|
chown -Rv "$UG" $( ls -1d * .git 2> /dev/null | |
|
|
grep -v -e '^src.' -e '^build$' -e '^download$' ) |
|
|
grep -v -e '^src.' -e '^build$' -e '^download$' ) |
|
|
) | grep -v "' retained " |
|
|
) | grep -v "' retained " |