summaryrefslogtreecommitdiff
path: root/bin/byteback-receive
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2016-11-09 09:41:50 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2016-11-09 09:41:50 +0000
commit3cc8a83938cd4eae9a196375dca2fd9127f23aa0 (patch)
treefa36b507469bdb1c7b4891e336a6928c59bceab5 /bin/byteback-receive
parent25f3947c16b57a9686500534e44423aab90b0bc7 (diff)
parentc68fe975ab4b47436bd90fa701b83a78793b0f32 (diff)
Merge branch 'master' into 12-fix-btrfs-path
Diffstat (limited to 'bin/byteback-receive')
-rwxr-xr-xbin/byteback-receive2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/byteback-receive b/bin/byteback-receive
index 0d7d025..1326bba 100755
--- a/bin/byteback-receive
+++ b/bin/byteback-receive
@@ -116,7 +116,7 @@ end
# Make sure we don't get crazy option combinations.
#
n_modes = opts.keys.inject(0) do |s,m|
- s += 1 if [:ping, :complete, :list].include?(m)
+ [:ping, :complete, :list].include?(m) ? s += 1 : s
end
error('Please only choose one mode') unless n_modes == 1