X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=inline;f=all_new_2018%2Finstall_for_target.sh;h=9d765aa97d6662e733262d33ed08e54e6a3e14a6;hb=06196e55c1d465d38ab97cdca1ad896e686b682b;hp=9d2e1a688c7fbbe8ab81aa5e1adcbea92824e840;hpb=ad51c30997402b922e5ae76dc55e5f1e89593ad7;p=config
diff --git a/all_new_2018/install_for_target.sh b/all_new_2018/install_for_target.sh
index 9d2e1a6..9d765aa 100755
--- a/all_new_2018/install_for_target.sh
+++ b/all_new_2018/install_for_target.sh
@@ -1,13 +1,16 @@
#!/bin/sh
# Walks through the package names in the argument-selected files of
# apt-mark/ and ensures the respective packages are installed.
+#
+# Ignores anything in an apt-mark/ file after the last newline.
set -e
config_tree_prefix="${HOME}/config/all_new_2018/apt-mark/"
for target in "$@"; do
path="${config_tree_prefix}${target}"
- for line in $(cat "${path}"); do
+ cat "${path}" | while read line; do
+ echo "$line"
if [ ! $(echo "${line}" | cut -c1) = "#" ]; then
apt-get -y install "${line}"
fi