@@ 182,9 182,11 @@ upload_pkg() (
repo="$1"
pkg="$2"
arch="$(uname -m)"
+ . /etc/os-release
+ aver="v$(printf "%s" "$VERSION_ID" | cut -d. -f1-2)"
set -x
- path="$remote_path/$repo/$arch"
+ path="$remote_path/$aver/$repo/$arch"
ssh "$remote" mkdir -p "$path"
url=$(echo "$remote" | cut -d@ -f2)
@@ 208,7 210,11 @@ upload_pkg() (
update_index() (
repo="$1"
arch="$(uname -m)"
- path="$remote_path/$repo/$arch"
+
+ . /etc/os-release
+ aver="v$(printf "%s" "$VERSION_ID" | cut -d. -f1-2)"
+
+ path="$remote_path/$aver/$repo/$arch"
set -x
ssh "$remote" \