aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-02-09 19:52:08 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-02-09 19:52:08 +0000
commitfa1facac5e27fbe63dd0d484c7f5d4d25ee3d383 (patch)
treef3df7f0c84be368d34b29a1e737b2b565c997312 /lib
parent73038f35d4aef579e619759eaf6091ffc29e29c2 (diff)
downloadsimplepkg-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.sh4
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