Skip to content

Instantly share code, notes, and snippets.

@lazyfrosch
Created March 11, 2015 09:30
Show Gist options
  • Select an option

  • Save lazyfrosch/4b0284233b362a108412 to your computer and use it in GitHub Desktop.

Select an option

Save lazyfrosch/4b0284233b362a108412 to your computer and use it in GitHub Desktop.
reprepro all distributions, for multiple archives
#!/bin/bash
set -e
ACTION="$1"
shift
for i in debian raspbian ubuntu; do
(
cd $i
echo "----- $i -----"
for dist in `grep Suite: conf/distributions | cut -d' ' -f2`; do
reprepro "$ACTION" "$dist" "$@"
done
)
done
# vi: ts=2 sw=2 expandtab :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment