X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=all_new_2018%2Finstall_for_target.sh;h=9d765aa97d6662e733262d33ed08e54e6a3e14a6;hb=60e6aeb6b26bd7b810deb8c53fe696022cb673b4;hp=d12c36eb6bd17aee6eca77f77f8877818e4cd82c;hpb=8bbfcc3c6a262a74d66ac84a25c7775029f4e53f;p=config
diff --git a/all_new_2018/install_for_target.sh b/all_new_2018/install_for_target.sh
index d12c36e..9d765aa 100755
--- a/all_new_2018/install_for_target.sh
+++ b/all_new_2018/install_for_target.sh
@@ -1,14 +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