diff options
Diffstat (limited to 'move_debs')
-rwxr-xr-x | move_debs | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -2,17 +2,17 @@ # Move binary packages built in a chroot to the local repository -# Positional argument -if [ $# -lt 1 ]; then usage; exit 1; fi -DIST=$1 - usage() { -echo "Usage: ./move_debs squeeze|wheezy|jessie" +echo "Usage: ./move_debs wheezy|jessie" } +# Positional argument +if [ $# -lt 1 ]; then usage; exit 1; fi +DIST=$1 + # Validate distribution argument -if [ $DIST != "squeeze" ] && [ $DIST != "wheezy" ] && [ $DIST != "jessie" ]; then usage; exit 1; fi +if [ $DIST != "wheezy" ] && [ $DIST != "jessie" ]; then usage; exit 1; fi chown jranke $DIST/*${DIST}cran*_amd64.deb mv $DIST/*${DIST}cran*_amd64.deb /home/jranke/svn/website/www/ranke/r-cran/$DIST-cran3 |