Browse Source

sde-reown: fixed to handle better the case where download/ doesn't exist

karasz/new-early
Alejandro Mery 16 years ago
parent
commit
7d1bb8162a
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      bin/sde-reown

+ 3
- 3
bin/sde-reown

@ -21,13 +21,13 @@
cd "$SDEROOT"
UG=$( stat -c %U:%G . )
UGD=$( stat -c %U:%G download/ )
UGD=$( [ -d download/ ] && stat -c %U:%G download/ )
export LANG=C
(
# 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 "' retained "

Loading…
Cancel
Save