github -> gitea
This commit is contained in:
parent
cf6aabfb95
commit
95fb4d6584
|
|
@ -7,7 +7,7 @@ set -eu
|
|||
# and customized Arch Linux system.
|
||||
# Copyright (C) 2022 picodotdev
|
||||
|
||||
GITHUB_USER="picodotdev"
|
||||
GITEA_USER="hartzan"
|
||||
BRANCH="master"
|
||||
HASH=""
|
||||
ARTIFACT="alis-${BRANCH}"
|
||||
|
|
@ -34,11 +34,11 @@ done
|
|||
|
||||
set -o xtrace
|
||||
if [ -n "$HASH" ]; then
|
||||
curl -sL -o "${ARTIFACT}.zip" "https://github.com/${GITHUB_USER}/alis/archive/${HASH}.zip"
|
||||
curl -sL -o "${ARTIFACT}.zip" "https://gitea.hartzan.com/${GITEA_USER}/alis/archive/${HASH}.zip"
|
||||
bsdtar -x -f "${ARTIFACT}.zip"
|
||||
cp -R "${ARTIFACT}"/*.sh "${ARTIFACT}"/*.conf "${ARTIFACT}"/files/ "${ARTIFACT}"/configs/ ./
|
||||
else
|
||||
curl -sL -o "${ARTIFACT}.zip" "https://github.com/${GITHUB_USER}/alis/archive/refs/heads/${BRANCH}.zip"
|
||||
curl -sL -o "${ARTIFACT}.zip" "https://gitea.hartzan.com/${GITEA_USER}/alis/archive/refs/heads/${BRANCH}.zip"
|
||||
bsdtar -x -f "${ARTIFACT}.zip"
|
||||
cp -R "${ARTIFACT}"/*.sh "${ARTIFACT}"/*.conf "${ARTIFACT}"/files/ "${ARTIFACT}"/configs/ ./
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue