Przeglądaj źródła

Create directory if it doesn't exist

Bob Mottram 10 lat temu
rodzic
commit
139f671bed
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3
    0
      install-freedombone.sh

+ 3
- 0
install-freedombone.sh Wyświetl plik

731
   # building tlsdate from source is a workaround because of
731
   # building tlsdate from source is a workaround because of
732
   # this bug https://github.com/ioerror/tlsdate/issues/130
732
   # this bug https://github.com/ioerror/tlsdate/issues/130
733
   apt-get -y --force-yes install build-essential automake git pkg-config autoconf libtool libssl-dev
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
   cd $INSTALL_DIR
737
   cd $INSTALL_DIR
735
   git clone https://github.com/ioerror/tlsdate.git
738
   git clone https://github.com/ioerror/tlsdate.git
736
   cd $INSTALL_DIR/tlsdate
739
   cd $INSTALL_DIR/tlsdate