summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Lasseter <Nat Lasseter nathan@bytemark.co.uk>2018-11-08 09:31:45 +0000
committerNat Lasseter <Nat Lasseter nathan@bytemark.co.uk>2018-11-08 09:31:45 +0000
commit3633071bbe2b6d86dd0f6ae1180663d1da843ada (patch)
tree634175d06109447a1ee1096a189c5f2c9d5df4a7
parent7ce5e1cbe9c66a9443d7571173cbc755c4be3327 (diff)
[debian] detault key of stable if none given
-rwxr-xr-xdebian7
1 files changed, 3 insertions, 4 deletions
diff --git a/debian b/debian
index 96fe225..77ba1f5 100755
--- a/debian
+++ b/debian
@@ -53,12 +53,11 @@ def find(elem)
end
if ARGV.length != 1 then
- $stderr.puts "No key provided"
- exit 2
+ key = "stable"
+else
+ key = ARGV.shift.strip.downcase
end
-key = ARGV.shift.strip.downcase
-
res = find(key)
if res.nil? then