home · contact · privacy
WIP
[config] / all_new_2018 / install_for_target.sh
1 #!/bin/sh
2 # Walks through the package names in the argument-selected files of
3 # apt-mark/ and ensures the respective packages are installed.
4 set -e
5
6 config_tree_prefix="${HOME}/config/all_new_2018/apt-mark/"
7
8 for target in "$@"; do
9     path="${config_tree_prefix}${target}"
10     cat "${path}" | while read line; do
11         if [ ! $(echo "${line}" | cut -c1) = "#" ]; then
12             apt-get -y install "${line}"
13         fi
14     done
15 done