From fe52590d1b76f5c612e9c30494ad2e968b7a7366 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 20 Jan 2024 20:54:28 -0800 Subject: fix: dist should only use files known to git Signed-off-by: Robin H. Johnson --- dist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-65-gdbad