blob: 818412dda4c7181880aeefb4b0c0d6fcdf89fb60 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#! /usr/bin/env bash
tmp=`mktemp -d`
cd $tmp
# HTTP protocol
git clone http://git.ilvokhin.com/infra.git > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "http: OK"
rm -rf infra
else
echo "http: FAIL"
fi
# HTTPS protocol
git clone https://git.ilvokhin.com/infra.git > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "https: OK"
rm -rf infra
else
echo "https: FAIL"
fi
cd - > /dev/null
rm -rf $tmp
|