#!/bin/bash # Copy binary packages built in a chroot on a remote server to the local repository usage() { echo "Usage: ./move_debs bullseye|bookworm|trixie" } # Positional argument if [ $# -lt 1 ]; then usage; exit 1; fi DIST=$1 # Validate distribution argument if [ $DIST != "bookworm" ] && [ $DIST != "bullseye" ] && [ $DIST != "trixie" ]; then usage; exit 1; fi scp arm64:/var/chroot/$DIST-arm64/root/r-backports/$DIST/*${DIST}cran*_arm64.{deb,build} /home/jranke/git/uni-bremen/website/www/ranke/r-cran/$DIST-cran40 sudo chown jranke /home/jranke/git/uni-bremen/website/www/ranke/r-cran/$DIST-cran40