From: Silvio Rhatto Date: Sat, 5 Dec 2020 23:35:31 +0000 (-0300) Subject: Fix: check if there are uninstalled dependencies before trying to install them X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=737a43ad52fcd9125afcc362cf5471be0c91ee8f;p=metadot.git Fix: check if there are uninstalled dependencies before trying to install them --- diff --git a/metadot b/metadot index 35b85ae..de18148 100755 --- a/metadot +++ b/metadot @@ -45,7 +45,7 @@ GIT="/usr/bin/git" # Backup a file function metadot_backup { local file="$DEST/$1" - + if [ -e "$file" ] || [ -h "$file" ]; then local folder="$BACKUPS/`dirname $1`" @@ -123,7 +123,9 @@ function metadot_deps { fi done - LC_ALL=C DEBIAN_FRONTEND=noninteractive sudo apt-get install -y $deps_to_install + if [ ! -z "$deps_to_install" ]; then + LC_ALL=C DEBIAN_FRONTEND=noninteractive sudo apt-get install -y $deps_to_install + fi fi else