2 # Walks through the package names in the argument-selected files of
3 # apt-mark/ and ensures the respective packages are installed.
5 # Ignores anything in an apt-mark/ file after the last newline.
8 config_tree_prefix="${HOME}/config/buster"
9 aptmark_dir="${config_tree_prefix}/apt-mark"
11 for target in "$@"; do
12 path="${aptmark_dir}/${target}"
13 cat "${path}" | while read line; do
15 if [ ! $(echo "${line}" | cut -c1) = "#" ]; then
16 apt-get -y -o Dpkg::Options::=--force-confdef install "${line}"