diff --git a/pkgbuild.sh b/pkgbuild.sh index a8d944b..0fd0c9d 100755 --- a/pkgbuild.sh +++ b/pkgbuild.sh @@ -56,8 +56,6 @@ exportPackageFiles() { exportFile "srcInfo" ".SRCINFO" pkgFile=$(sudo -u calbuilder makepkg --packagelist) - ls -al - echo "$pkgFile" if [ -f "$pkgFile" ]; then relPkgFile="$(realpath --relative-base="$baseDir" "$pkgFile")" exportFile "pkgFile" "$relPkgFile" "$pkgFile" @@ -125,13 +123,14 @@ runScript() { exportPackageFiles namcapAnalysis - ls -al - findArgs+=("-not" "-name" "$relPkgFile*" "-not" "-name" ".SRCINFO") newFiles=$(find -H "$PWD" "${findArgs[@]}") files=$(printf '%s\n%s\n' "$newFiles" "$oldFiles") mapfile -t toRemove < <(echo "$files" | sort | uniq -u) rm -rf "${toRemove[@]}" + + cd .. + ls -al } runScript "$@"