Browse Source

Create directory if it doesn't exist

Bob Mottram 10 years ago
parent
commit
139f671bed
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      install-freedombone.sh

+ 3
- 0
install-freedombone.sh View File

@@ -731,6 +731,9 @@ function time_synchronisation {
731 731
   # building tlsdate from source is a workaround because of
732 732
   # this bug https://github.com/ioerror/tlsdate/issues/130
733 733
   apt-get -y --force-yes install build-essential automake git pkg-config autoconf libtool libssl-dev
734
+  if [ ! -d $INSTALL_DIR ]; then
735
+      mkdir $INSTALL_DIR
736
+  fi
734 737
   cd $INSTALL_DIR
735 738
   git clone https://github.com/ioerror/tlsdate.git
736 739
   cd $INSTALL_DIR/tlsdate