Skip to content

Commit ddaf8b9

Browse files
committed
Changes due to the fork:branch support in v-update-sys-hestia-git
1 parent a475883 commit ddaf8b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/v-update-sys-hestia-git

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,20 +182,20 @@ install_build() {
182182
}
183183

184184
# Set install flags
185-
if [ -n "$1" ]; then
185+
if [ -n "$fork" ]; then
186186
fork_check=$(curl -s --head -w %{http_code} https://raw.githubusercontent.com/$fork/hestiacp/main/src/deb/hestia/control -o /dev/null)
187187
if [ "$fork_check" -ne "200" ]; then
188188
echo "ERROR: invalid repository name specified."
189189
exit 1
190190
else
191191
echo "[!] Download code from GitHub repository: $fork"
192-
fork="$1"
193192
fi
194193
else
195194
fork="hestiacp"
196195
fi
197196

198-
if [ -n "$2" ]; then
197+
if [ -n "$branch" ]; then
198+
echo https://raw.githubusercontent.com/$fork/hestiacp/$branch/src/deb/hestia/control;
199199
branch_check=$(curl -s --head -w %{http_code} https://raw.githubusercontent.com/$fork/hestiacp/$branch/src/deb/hestia/control -o /dev/null)
200200
if [ $branch_check -ne "200" ]; then
201201
echo "ERROR: invalid branch name specified."

0 commit comments

Comments
 (0)