From a892d3d16be3f0e893ee08f1612fb0be1621c545 2019-10-21 15:42:00 From: burnbabyburn <2515038+burnbabyburn@users.noreply.github.com> Date: 2019-10-21 15:42:00 Subject: [PATCH] Update rpi23-gen-image.sh --- diff --git a/rpi23-gen-image.sh b/rpi23-gen-image.sh index 93a05f1..8e14ece 100755 --- a/rpi23-gen-image.sh +++ b/rpi23-gen-image.sh @@ -473,7 +473,8 @@ if [ -n "$MISSING_PACKAGES" ] ; then [ "$confirm" != "y" ] && exit 1 # Make sure all missing required packages are installed - apt-get -qq -y install "$(echo "${MISSING_PACKAGES}" | sed "s/ //")" + apt-get update + apt-get -qq -y install "$MISSING_PACKAGES" fi # Check if ./bootstrap.d directory exists