|
@@ -133,6 +133,11 @@ if [ ! -z "$2" ]; then
|
|
|
else
|
|
else
|
|
|
source /usr/local/hestia/conf/hestia.conf
|
|
source /usr/local/hestia/conf/hestia.conf
|
|
|
branch=$RELEASE_BRANCH
|
|
branch=$RELEASE_BRANCH
|
|
|
|
|
+ branch_check=$(curl -s --head -w %{http_code} https://raw.githubusercontent.com/$fork/hestiacp/$branch/src/deb/hestia/control -o /dev/null)
|
|
|
|
|
+ if [ $branch_check -ne "200" ]; then
|
|
|
|
|
+ echo "ERROR: invalid branch name specified."
|
|
|
|
|
+ exit 1
|
|
|
|
|
+ fi
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$branch" ]; then
|
|
if [ -z "$branch" ]; then
|