|
|
@ -12,9 +12,9 @@ function get_os () {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
APP=gitea
|
|
|
|
APP=gitea
|
|
|
|
DEST="${XDG_DATA_HOME}/apps/releases/${APP}"
|
|
|
|
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
|
|
|
|
CURRENT="${DEST}/current"
|
|
|
|
CURRENT=${DEST}/current
|
|
|
|
VERSION=${VERSION:-1.15.0}
|
|
|
|
VERSION=${VERSION:-1.18}
|
|
|
|
URL=https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-$(get_os)-$(get_arch).xz
|
|
|
|
URL=https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-$(get_os)-$(get_arch).xz
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -d "${DEST}/${VERSION}" ]; then
|
|
|
|
if [ ! -d "${DEST}/${VERSION}" ]; then
|
|
|
|