浏览代码

Create directory if it doesn't exist

Bob Mottram 11 年前
父节点
当前提交
139f671bed
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      install-freedombone.sh

+ 3
- 0
install-freedombone.sh 查看文件

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