Skip to content

Commit

Permalink
[install.sh] Handle git clone failure more visibly
Browse files Browse the repository at this point in the history
  • Loading branch information
solvaholic committed May 4, 2021
1 parent 621de5c commit 7fa64b6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ if [[ "$_ver" = v* ]]; then
pip install "octodns==${_ver#v}" -r requirements.txt
else
# Assume input 'version' is a Git ref in octodns/octodns
git clone --single-branch --branch "$_ver" --no-tags \
https://github.com/octodns/octodns.git octodns-src
pip install ./octodns-src -r ./octodns-src/requirements.txt
fi
if git clone --single-branch --branch "$_ver" --no-tags \
https://github.com/octodns/octodns.git octodns-src; then
pip install ./octodns-src -r ./octodns-src/requirements.txt
else
exit 1
fi
fi

0 comments on commit 7fa64b6

Please sign in to comment.