X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=inline;f=all_new_2018%2Finstall_for_target.sh;fp=all_new_2018%2Finstall_for_target.sh;h=9d765aa97d6662e733262d33ed08e54e6a3e14a6;hb=86f4b75d0db3806188b2720776a9ce8b0db63d59;hp=7693a0530174eb1aaa148e205d52e923a49aa097;hpb=09900401ee9dabdfc29b338f8d90f8904b4eb9b3;p=config
diff --git a/all_new_2018/install_for_target.sh b/all_new_2018/install_for_target.sh
index 7693a05..9d765aa 100755
--- a/all_new_2018/install_for_target.sh
+++ b/all_new_2018/install_for_target.sh
@@ -1,6 +1,8 @@
#!/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/"
@@ -8,6 +10,7 @@ config_tree_prefix="${HOME}/config/all_new_2018/apt-mark/"
for target in "$@"; do
path="${config_tree_prefix}${target}"
cat "${path}" | while read line; do
+ echo "$line"
if [ ! $(echo "${line}" | cut -c1) = "#" ]; then
apt-get -y install "${line}"
fi