From 8254bfd6b3314d2197407c484a19c37855071f02 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sat, 13 Apr 2019 13:49:41 -0300 Subject: [PATCH] travis/show_files.sh: avoid useless use of cat --- common/travis/show_files.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/travis/show_files.sh b/common/travis/show_files.sh index e5029bd0ca3..f9cfca8c463 100755 --- a/common/travis/show_files.sh +++ b/common/travis/show_files.sh @@ -4,10 +4,9 @@ export XBPS_TARGET_ARCH="$2" XBPS_DISTDIR=/hostrepo -for pkg in $(cat /tmp/templates); do +while read -r pkg; do for subpkg in $(xsubpkg $pkg); do /bin/echo -e "\x1b[32mFiles of $subpkg:\x1b[0m" xbps-query --repository=$HOME/hostdir/binpkgs -f "$subpkg" done -done - +done < /tmp/templates