X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=inline;f=all_new_2018%2Fpurge_nonrequireds.sh;h=5b63ddf2b23c3e961ddee4f5b2889179b89068ec;hb=6adeba0b0811e36421b0f8f99da7c9394cef2a1d;hp=34692dad5889d6e456a799e40179bde0dbfdab4b;hpb=ad51c30997402b922e5ae76dc55e5f1e89593ad7;p=config
diff --git a/all_new_2018/purge_nonrequireds.sh b/all_new_2018/purge_nonrequireds.sh
index 34692da..5b63ddf 100755
--- a/all_new_2018/purge_nonrequireds.sh
+++ b/all_new_2018/purge_nonrequireds.sh
@@ -9,7 +9,7 @@ config_tree_prefix="${HOME}/config/all_new_2018/apt-mark/"
dpkg-query -Wf '${Package} ${Priority}\n' | grep ' required' | sed 's/ required//' > /tmp/list_white_unsorted
for target in "$@"; do
path="${config_tree_prefix}${target}"
- for line in $(cat "${path}"); do
+ cat "${path}" | while read line; do
if [ ! $(echo "${line}" | cut -c1) = "#" ]; then
echo "${line}" >> /tmp/list_white_unsorted
fi