#!/bin/sh DEST=$1 if [ "$DEST" = "" ]; then echo You must supply a destination directory exit fi if [ ! -e $DEST ]; then echo Destination does not exist: $DEST exit fi echo Mirroring to $DEST cd $DEST /usr/bin/debmirror -a i386 -h http.us.debian.org -d woody $DEST --nosource --progress