Skip to content

Commit 1c96a46

Browse files
authored
Merge pull request #137 from brianhlin/sw2232_fix_bootstrap
Fix bootstrap-osg-test (SOFTWARE-2232)
2 parents 3ed8c98 + 6fa4039 commit 1c96a46

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

bootstrap-osg-test

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ on_error_die()
1313
fi
1414
}
1515

16+
if [ $# -ne 1 ]; then
17+
echo "Requires the major version number, i.e. 3.2 for 3.2.0"
18+
echo "usage: $0 <major version>"
19+
exit 1
20+
fi
21+
22+
if [[ $1 =~ ^[0-9]+\.[0-9]+$ ]]; then
23+
version=$1
24+
else
25+
echo "Major version should be in the form of '<number>.<number>, i.e. 3.2"
26+
echo "usage: $0 <major version>"
27+
exit 1
28+
fi
29+
1630
# Determine platform-specific details
1731
release=`cat /etc/redhat-release`
1832
case $release in
@@ -78,7 +92,7 @@ on_error_die "Could not verify yum-plugin-priorities"
7892

7993
cd /tmp
8094
for repo in osg-test osg-ca-generator; do
81-
git clone $UPSTREAM/$repo
95+
git clone --depth 1 $UPSTREAM/$repo
8296
on_error_die "Failed to clone $UPSTREAM/$repo"
8397
pushd $repo
8498
make install

0 commit comments

Comments
 (0)