aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'