From 1a1bc856c153a24bd1fdd850a68f47376ea10004 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 9 Feb 2007 21:41:27 +0000 Subject: numeric_perm: small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@175 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 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' -- cgit v1.2.3