diff --git a/elements/opensuse/bin/install-packages b/elements/opensuse/bin/install-packages index d556c9db2..3c6b3097b 100755 --- a/elements/opensuse/bin/install-packages +++ b/elements/opensuse/bin/install-packages @@ -78,5 +78,9 @@ if [ -n "$WHITELIST" ]; then else PKGS=$(map-packages $WHITELIST) fi - run_zypper install $EXTRA_ARGS $PKGS + if [ -z "${PKGS}" ]; then + echo 'No packages need to be installed' + else + run_zypper install $EXTRA_ARGS $PKGS + fi fi