home · contact · privacy
WIP.
[config] / all_new_2018 / install_for_target.sh
index d12c36eb6bd17aee6eca77f77f8877818e4cd82c..9d765aa97d6662e733262d33ed08e54e6a3e14a6 100755 (executable)
@@ -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