소스 검색

Check that repo clone happens

Bob Mottram 7 년 전
부모
커밋
590bcd316c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4
    0
      src/freedombone-app-batman

+ 4
- 0
src/freedombone-app-batman 파일 보기

@@ -143,6 +143,10 @@ function install_mesh_tunnel {
143 143
     chroot "$rootdir" apt-get -yq install iproute bridge-utils libnetfilter-conntrack3 python-dev libevent-dev ebtables python-pip git
144 144
 
145 145
     git clone https://github.com/wlanslovenija/tunneldigger $rootdir/opt/tunneldigger
146
+    if [ ! -d $rootdir/opt/tunneldigger/client ]; then
147
+        echo $'Unable to clone tunneldigger repo'
148
+        exit 1987453
149
+    fi
146 150
     cd $rootdir/opt/tunneldigger/client
147 151
     chroot "$rootdir" make
148 152
     if [ ! -f $rootdir/opt/tunneldigger/client/l2tp_client ]; then