better prints
This commit is contained in:
parent
94a824a654
commit
c3339af9b0
|
@ -50,7 +50,6 @@ declare -a tarballs=($(jq '"\(.browser_download_url) /\(.name)"' <<<$rel_info |
|
||||||
for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
|
for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
|
||||||
url="${tarballs[i]}"
|
url="${tarballs[i]}"
|
||||||
filename="${tarballs[i + 1]#/}"
|
filename="${tarballs[i + 1]#/}"
|
||||||
echo $filename
|
|
||||||
arch=$(sed -E "s/^.+?linux-(.+?).tar.gz$/\1/g" <<<"${tarballs[i + 1]}")
|
arch=$(sed -E "s/^.+?linux-(.+?).tar.gz$/\1/g" <<<"${tarballs[i + 1]}")
|
||||||
if [[ "$arch" == "x64" ]] || [[ "$arch" == "core-x64" ]]; then
|
if [[ "$arch" == "x64" ]] || [[ "$arch" == "core-x64" ]]; then
|
||||||
arch="amd64"
|
arch="amd64"
|
||||||
|
@ -66,6 +65,7 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
|
||||||
fi
|
fi
|
||||||
echo "url: $url, arch: $arch"
|
echo "url: $url, arch: $arch"
|
||||||
if [ -z "$1" ] || [[ "$arch" == "$1" ]]; then
|
if [ -z "$1" ] || [[ "$arch" == "$1" ]]; then
|
||||||
|
echo "Building for $arch..."
|
||||||
dir=$(mktemp -d)
|
dir=$(mktemp -d)
|
||||||
current_dir=$PWD
|
current_dir=$PWD
|
||||||
mkdir -p $dir/prowlarr
|
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
|
cp prowlarr.deb $current_dir/build/prowlarr/prowlarr-$name-$arch.deb
|
||||||
cd $current_dir
|
cd $current_dir
|
||||||
else
|
else
|
||||||
echo "skipping arch $arch"
|
echo "Skipping arch $arch"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -55,7 +55,6 @@ declare -a tarballs=($(jq '"\(.browser_download_url) /\(.name)"' <<<$rel_info |
|
||||||
for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
|
for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
|
||||||
url="${tarballs[i]}"
|
url="${tarballs[i]}"
|
||||||
filename="${tarballs[i + 1]#/}"
|
filename="${tarballs[i + 1]#/}"
|
||||||
echo $filename
|
|
||||||
arch=$(sed -E "s/^.+?linux-(.+?).tar.gz$/\1/g" <<<"${tarballs[i + 1]}")
|
arch=$(sed -E "s/^.+?linux-(.+?).tar.gz$/\1/g" <<<"${tarballs[i + 1]}")
|
||||||
if [[ "$arch" == "x64" ]] || [[ "$arch" == "core-x64" ]]; then
|
if [[ "$arch" == "x64" ]] || [[ "$arch" == "core-x64" ]]; then
|
||||||
arch="amd64"
|
arch="amd64"
|
||||||
|
@ -71,6 +70,7 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
|
||||||
fi
|
fi
|
||||||
echo "url: $url, arch: $arch"
|
echo "url: $url, arch: $arch"
|
||||||
if [ -z "$1" ] || [[ "$arch" == "$1" ]]; then
|
if [ -z "$1" ] || [[ "$arch" == "$1" ]]; then
|
||||||
|
echo "Building for $arch..."
|
||||||
dir=$(mktemp -d)
|
dir=$(mktemp -d)
|
||||||
current_dir=$PWD
|
current_dir=$PWD
|
||||||
mkdir -p $dir/radarr
|
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
|
cp radarr.deb $current_dir/build/radarr/radarr-$name-$arch.deb
|
||||||
cd $current_dir
|
cd $current_dir
|
||||||
else
|
else
|
||||||
echo "skipping arch $arch"
|
echo "Skipping arch $arch"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -57,7 +57,6 @@ declare -a tarballs=($(jq '"\(.browser_download_url) /\(.name)"' <<<$rel_info |
|
||||||
for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
|
for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
|
||||||
url="${tarballs[i]}"
|
url="${tarballs[i]}"
|
||||||
filename="${tarballs[i + 1]#/}"
|
filename="${tarballs[i + 1]#/}"
|
||||||
echo $filename
|
|
||||||
arch=$(sed -E "s/^.+?linux-(.+?).tar.gz$/\1/g" <<<"${tarballs[i + 1]}")
|
arch=$(sed -E "s/^.+?linux-(.+?).tar.gz$/\1/g" <<<"${tarballs[i + 1]}")
|
||||||
if [[ "$arch" == "x64" ]]; then
|
if [[ "$arch" == "x64" ]]; then
|
||||||
arch="amd64"
|
arch="amd64"
|
||||||
|
@ -67,6 +66,7 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
|
||||||
fi
|
fi
|
||||||
echo "url: $url, arch: $arch"
|
echo "url: $url, arch: $arch"
|
||||||
if [ -z "$1" ] || [[ "$arch" == "$1" ]]; then
|
if [ -z "$1" ] || [[ "$arch" == "$1" ]]; then
|
||||||
|
echo "Building for $arch..."
|
||||||
dir=$(mktemp -d)
|
dir=$(mktemp -d)
|
||||||
current_dir=$PWD
|
current_dir=$PWD
|
||||||
mkdir -p $dir/sonarr
|
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
|
cp sonarr.deb $current_dir/build/sonarr/sonarr-$name-$arch.deb
|
||||||
cd $current_dir
|
cd $current_dir
|
||||||
else
|
else
|
||||||
echo "skipping arch $arch"
|
echo "Skipping arch $arch"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue