summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2015-12-02 09:57:39 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2015-12-02 09:57:39 +0000
commitb186a1b6ff0ac7a9558eb3618f2c42a69599c145 (patch)
tree11d1d640d9ad028178fec3e1e611d8629aeebe66
parent81c9a84e1e464412dc513ecd75f40c4488c9c19b (diff)
Catch out-dated clients by looking for the old "restore" command
Hopefully this will prompt people to update.
-rwxr-xr-xbin/byteback-receive4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/byteback-receive b/bin/byteback-receive
index b415f0e..f475446 100755
--- a/bin/byteback-receive
+++ b/bin/byteback-receive
@@ -62,6 +62,10 @@ elsif ARGV[0] == 'byteback-snapshot'
ARGV.concat(['--root', "#{byteback_root}"])
exec(*ARGV)
+elsif ARGV[0] == "restore"
+ puts "** Your byteback package needs to be updated. Please update and try again."
+ exit(1)
+
end
opts = Trollop.options do