Compare commits
2 Commits
cac4f07162
...
8ccf037f25
| Author | SHA1 | Date | |
|---|---|---|---|
| 8ccf037f25 | |||
| 901b9609b2 |
@@ -424,12 +424,12 @@ setMCVersion() {
|
||||
MC_VERSION="$USER_MC_VERSION"
|
||||
# Containerized package manager
|
||||
elif installPackage --silent buildah &&
|
||||
cnt=$(buildah from --quiet alpine:edge) &>/dev/null &&
|
||||
buildah run "$cnt" -- bash -c \
|
||||
cnt=$(buildah from --quiet alpine:edge) &&
|
||||
buildah run "$cnt" -- sh -c \
|
||||
"apk add apt" &>/dev/null &&
|
||||
buildah run "$cnt" -- bash -c \
|
||||
buildah run "$cnt" -- sh -c \
|
||||
"echo 'deb [trusted=no arch=amd64,i386,armhf,arm64] http://dist.jriver.com/latest/mediacenter/ $MC_REPO main' > /etc/apt/sources.list 2>&1" &>/dev/null &&
|
||||
buildah run "$cnt" -- bash -c \
|
||||
buildah run "$cnt" -- sh -c \
|
||||
"apt update --allow-insecure-repositories &>/dev/null" &>/dev/null &&
|
||||
MC_VERSION=$(buildah run "$cnt" -- apt-cache policy mediacenter?? | grep Candidate | awk '{print $2}' | sort -V | tail -n1) &>/dev/null &&
|
||||
[[ $MC_VERSION =~ ([0-9]+.[0-9]+.[0-9]+) ]]; then
|
||||
|
||||
Reference in New Issue
Block a user