aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-02-09 21:41:27 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-02-09 21:41:27 +0000
commit1a1bc856c153a24bd1fdd850a68f47376ea10004 (patch)
tree3bc7b023877750d7cda424b1bba2a50ef6707745 /lib
parent98829a5f49427f79f08c4d33effbf4fbd6cce970 (diff)
downloadsimplepkg-1a1bc856c153a24bd1fdd850a68f47376ea10004.tar.gz
simplepkg-1a1bc856c153a24bd1fdd850a68f47376ea10004.tar.bz2
numeric_perm: small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@175 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 ce1634b..d0fde3c 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -378,8 +378,8 @@ function numeric_perm {
# just a bit of forbidden secrets
- if [ -a "$file" ]; then
- ls -ln $file | awk '{ print $1 }' | \
+ if [ -a "$1" ]; then
+ ls -ln $1| 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' | \
fold -w5 | bc -l | xargs | sed -e 's/ //g'