From 5b1168d90dd3547d3778272d0e9dd17e8424a46e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 15 Feb 2016 11:31:26 +0000 Subject: [PATCH] Directory check --- src/freedombone | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/freedombone b/src/freedombone index e2f98ed6..5519fd47 100755 --- a/src/freedombone +++ b/src/freedombone @@ -10051,7 +10051,9 @@ function install_dynamicdns { # https version 1.99.8 apt-get -y install build-essential curl libgnutls28-dev automake1.11 - git_clone $INADYN_REPO $INSTALL_DIR/inadyn + if [ ! -d $INSTALL_DIR/inadyn ]; then + git_clone $INADYN_REPO $INSTALL_DIR/inadyn + fi if [ ! -d $INSTALL_DIR/inadyn ]; then echo 'inadyn repo not cloned' echo -n | openssl s_client -showcerts -connect github.com:443 -CApath /etc/ssl/certs