]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
numeric_perm small fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 9 Feb 2007 19:52:08 +0000 (19:52 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 9 Feb 2007 19:52:08 +0000 (19:52 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@169 04377dda-e619-0410-9926-eae83683ac58

lib/common.sh

index 461c28326e4969400757e2fe87b5d9708cddce17..ce1634b980b82f5445d07f334bdc553cb2a886d3 100644 (file)
@@ -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