home · contact · privacy
d12c36eb6bd17aee6eca77f77f8877818e4cd82c
[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     #for line in $(cat "${path}"); do
11     cat "${path}" | while read line; do
12         if [ ! $(echo "${line}" | cut -c1) = "#" ]; then
13             apt-get -y install "${line}"
14         fi
15     done
16 done