diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2016-03-18 07:07:24 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2016-03-18 07:07:24 +0100 |
commit | 51c49de10bb2bc042ada17c183c7d388736323a3 (patch) | |
tree | 641a733e4ee07a74c2493b98a6e4be973590a4b2 | |
parent | 2300ce09e386f6b421aedcc9337d7fc3bb66fdc1 (diff) |
Fix usage and remove squeeze
-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 |