diff --git a/pkgbuild.sh b/pkgbuild.sh index b25ea84..86f61c4 100755 --- a/pkgbuild.sh +++ b/pkgbuild.sh @@ -120,7 +120,7 @@ runScript() { namcapAnalysis exportPackageFiles - findArgs+=("-not" "-name" "$relPkgFile*" "-not" "-name" ".SRCINFO") + findArgs+=("-not" "-name" "$pkgFile*" "-not" "-name" ".SRCINFO") newFiles=$(find -H "$PWD" "${findArgs[@]}") files=$(printf '%s\n%s\n' "$newFiles" "$oldFiles") mapfile -t toRemove < <(echo "$files" | sort | uniq -u)