File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
194193else
195194 fork=" hestiacp"
196195fi
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."
You can’t perform that action at this time.
0 commit comments