From fa1facac5e27fbe63dd0d484c7f5d4d25ee3d383 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 9 Feb 2007 19:52:08 +0000 Subject: numeric_perm small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@169 04377dda-e619-0410-9926-eae83683ac58 --- lib/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3