summaryrefslogtreecommitdiffstats
path: root/push.sh
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-07-08 23:27:57 +0200
committerSage Weil <sage@newdream.net>2010-07-08 23:27:57 +0200
commitb81273d5ec9e6ff15e46676a80d57827871b668d (patch)
treedad6e17a2b0c9a730a5f619a4ccf458cda3be7e4 /push.sh
parentosd: fix delayed pg creation use after free (diff)
downloadceph-b81273d5ec9e6ff15e46676a80d57827871b668d.tar.xz
ceph-b81273d5ec9e6ff15e46676a80d57827871b668d.zip
debian: make helper scripts remember most recent release
So you don't have to cut&paste it on the command line Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'push.sh')
-rwxr-xr-xpush.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/push.sh b/push.sh
index fb63d8332b6..046470a06c2 100755
--- a/push.sh
+++ b/push.sh
@@ -4,8 +4,10 @@ set -e
remote=ceph.newdream.net
vers=$1
+[ -z "$vers" ] && [ -e .last_release ] && vers=`cat .last_release`
[ -z "$vers" ] && echo specify version && exit 1
[ ! -d release/$vers ] && echo release/$vers dne && exit 1
+echo version $vers
shift