diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-02-09 19:52:08 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-02-09 19:52:08 +0000 |
commit | fa1facac5e27fbe63dd0d484c7f5d4d25ee3d383 (patch) | |
tree | f3df7f0c84be368d34b29a1e737b2b565c997312 /lib | |
parent | 73038f35d4aef579e619759eaf6091ffc29e29c2 (diff) | |
download | simplepkg-fa1facac5e27fbe63dd0d484c7f5d4d25ee3d383.tar.gz simplepkg-fa1facac5e27fbe63dd0d484c7f5d4d25ee3d383.tar.bz2 |
numeric_perm small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@169 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common.sh b/lib/common.sh index 461c283..ce1634b 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -380,8 +380,8 @@ function numeric_perm { if [ -a "$file" ]; then ls -ln $file | awk '{ print $1 }' | \ - sed -e 's/^.//' -e 's/r/4/g' -e 's/w/2/g' -e 's/x/1/g' - -e 's/-/0/g' -e 's/\(.\)\(.\)\(.\)/\1+\2+\3/g' | \ + sed -e 's/^.//' -e 's/r/4/g' -e 's/w/2/g' -e 's/x/1/g' \ + -e 's/-/0/g' -e 's/\(.\)\(.\)\(.\)/\1+\2+\3/g' | \ fold -w5 | bc -l | xargs | sed -e 's/ //g' fi |