From f2e7924aabcb6da9ead0613fbd5d92ad5b1ed6b6 Mon Sep 17 00:00:00 2001 From: bryan Date: Wed, 12 Jan 2022 08:46:16 -0500 Subject: [PATCH] Cleanup debug code --- installJRMC | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/installJRMC b/installJRMC index a8c19e3..569b48c 100755 --- a/installJRMC +++ b/installJRMC @@ -379,7 +379,7 @@ getLatestVersion() { "echo 'deb [trusted=no arch=amd64,i386,armhf,arm64] http://dist.jriver.com/latest/mediacenter/ $BASE main' > /etc/apt/sources.list 2>&1" buildah run "$cnt" -- bash -c \ "apt-get update --allow-insecure-repositories &>/dev/null" - if MCVERSION=$(buildah run "$CNT" -- apt-cache policy mediacenter?? | grep Candidate | awk '{print $2}' | sort -V | tail -n1) \ + if MCVERSION=$(buildah run "$cnt" -- apt-cache policy mediacenter?? | grep Candidate | awk '{print $2}' | sort -V | tail -n1) \ && [[ "$MCVERSION" =~ ([0-9]+.[0-9]+.[0-9]+) ]]; then version_source="containerized package manager" fi @@ -602,9 +602,6 @@ buildRPM() { IFS=',' read -ra requires <<< "$(dpkg-deb -f "$MCDEB" Depends)" IFS=',' read -ra recommends <<< "$(dpkg-deb -f "$MCDEB" Recommends)" - echo "${requires[@]}" - echo $id - # Clean up formatting requires=("${requires[@]%%|*}") requires=("${requires[@]/?:/}") @@ -622,7 +619,6 @@ buildRPM() { # Translate package names case "$id" in fedora|centos) - echo "HERE!" requires=("${requires[@]/libc6/glibc}") requires=("${requires[@]/libasound2/alsa-lib}") requires=("${requires[@]/libuuid1/libuuid}")