From 139f671bedd484fea83a6f73085de3682ee9dbe6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 30 Sep 2014 23:51:54 +0100 Subject: [PATCH] Create directory if it doesn't exist --- install-freedombone.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install-freedombone.sh b/install-freedombone.sh index ffec023e..d4b0adb1 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -731,6 +731,9 @@ function time_synchronisation { # building tlsdate from source is a workaround because of # this bug https://github.com/ioerror/tlsdate/issues/130 apt-get -y --force-yes install build-essential automake git pkg-config autoconf libtool libssl-dev + if [ ! -d $INSTALL_DIR ]; then + mkdir $INSTALL_DIR + fi cd $INSTALL_DIR git clone https://github.com/ioerror/tlsdate.git cd $INSTALL_DIR/tlsdate