aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dist.sh')
-rwxr-xr-xdist.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist.sh b/dist.sh
index 125dba0..0ca3165 100755
--- a/dist.sh
+++ b/dist.sh
@@ -22,7 +22,7 @@ else
tag=$1
fi
-for foo in $(find ${dirs} -type f); do
+for foo in $(git ls-files ${dirs} ); do
[ "${foo:$((${#foo}-3))}" = ".pm" ] && { perl $perl_opts -c $foo; continue; }
[ -n "$(grep -m 1 '^#!/usr/bin/perl' $foo)" ] && { perl $perl_opts -c $foo; continue; }
done