Added force "yes"

This commit is contained in:
Igor Pečovnik 2016-07-31 14:07:08 +02:00 committed by GitHub
parent 5cbd9c3363
commit 6405d7337e

View File

@ -76,7 +76,7 @@ update_chroot()
deps=()
installed=$(dpkg-query -W -f '${db:Status-Abbrev}|${binary:Package}\n' '*' 2>/dev/null | grep '^ii' | awk -F '|' '{print $2}' | cut -d ':' -f 1)
for packet in "$@"; do grep -q -x -e "$packet" <<< "$installed" || deps+=("$packet"); done
[[ ${#deps[@]} -gt 0 ]] && apt-get -y --no-install-recommends install "${deps[@]}"
[[ ${#deps[@]} -gt 0 ]] && apt-get -y --force-yes --no-install-recommends install "${deps[@]}"
EOF
chmod +x $target_dir/root/install-deps.sh
} #############################################################################