aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-12-05 20:35:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-12-05 20:35:31 -0300
commit737a43ad52fcd9125afcc362cf5471be0c91ee8f (patch)
tree70825c014219e1715f3c6dff4505196a2b0c97a4
parent0dd059e208f51feaaa6d0eb055b6fab8e2aaed59 (diff)
downloadmetadot-master.tar.gz
metadot-master.tar.bz2
Fix: check if there are uninstalled dependencies before trying to install themHEADmaster
-rwxr-xr-xmetadot6
1 files changed, 4 insertions, 2 deletions
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