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