better prints

This commit is contained in:
Alex Janka 2024-05-18 12:21:01 +10:00
parent 94a824a654
commit c3339af9b0
3 changed files with 6 additions and 6 deletions

View file

@ -50,7 +50,6 @@ declare -a tarballs=($(jq '"\(.browser_download_url) /\(.name)"' <<<$rel_info |
for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
url="${tarballs[i]}"
filename="${tarballs[i + 1]#/}"
echo $filename
arch=$(sed -E "s/^.+?linux-(.+?).tar.gz$/\1/g" <<<"${tarballs[i + 1]}")
if [[ "$arch" == "x64" ]] || [[ "$arch" == "core-x64" ]]; then
arch="amd64"
@ -66,6 +65,7 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
fi
echo "url: $url, arch: $arch"
if [ -z "$1" ] || [[ "$arch" == "$1" ]]; then
echo "Building for $arch..."
dir=$(mktemp -d)
current_dir=$PWD
mkdir -p $dir/prowlarr
@ -90,6 +90,6 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
cp prowlarr.deb $current_dir/build/prowlarr/prowlarr-$name-$arch.deb
cd $current_dir
else
echo "skipping arch $arch"
echo "Skipping arch $arch"
fi
done

View file

@ -55,7 +55,6 @@ declare -a tarballs=($(jq '"\(.browser_download_url) /\(.name)"' <<<$rel_info |
for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
url="${tarballs[i]}"
filename="${tarballs[i + 1]#/}"
echo $filename
arch=$(sed -E "s/^.+?linux-(.+?).tar.gz$/\1/g" <<<"${tarballs[i + 1]}")
if [[ "$arch" == "x64" ]] || [[ "$arch" == "core-x64" ]]; then
arch="amd64"
@ -71,6 +70,7 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
fi
echo "url: $url, arch: $arch"
if [ -z "$1" ] || [[ "$arch" == "$1" ]]; then
echo "Building for $arch..."
dir=$(mktemp -d)
current_dir=$PWD
mkdir -p $dir/radarr
@ -95,6 +95,6 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
cp radarr.deb $current_dir/build/radarr/radarr-$name-$arch.deb
cd $current_dir
else
echo "skipping arch $arch"
echo "Skipping arch $arch"
fi
done

View file

@ -57,7 +57,6 @@ declare -a tarballs=($(jq '"\(.browser_download_url) /\(.name)"' <<<$rel_info |
for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
url="${tarballs[i]}"
filename="${tarballs[i + 1]#/}"
echo $filename
arch=$(sed -E "s/^.+?linux-(.+?).tar.gz$/\1/g" <<<"${tarballs[i + 1]}")
if [[ "$arch" == "x64" ]]; then
arch="amd64"
@ -67,6 +66,7 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
fi
echo "url: $url, arch: $arch"
if [ -z "$1" ] || [[ "$arch" == "$1" ]]; then
echo "Building for $arch..."
dir=$(mktemp -d)
current_dir=$PWD
mkdir -p $dir/sonarr
@ -90,6 +90,6 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
cp sonarr.deb $current_dir/build/sonarr/sonarr-$name-$arch.deb
cd $current_dir
else
echo "skipping arch $arch"
echo "Skipping arch $arch"
fi
done