aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-07-31 22:11:06 -0400
committerFranklin Wei <me@fwei.tk>2018-07-31 22:11:06 -0400
commitccf72af40f4f476f1291e466c094c96e3c33b190 (patch)
treeb607c53871d51c88365cca7b0c34642b4b5f29f7
parent8c7f82b1c1d8e80078be4d30162bc29a489aff4c (diff)
downloadcsaa-ccf72af40f4f476f1291e466c094c96e3c33b190.zip
csaa-ccf72af40f4f476f1291e466c094c96e3c33b190.tar.gz
csaa-ccf72af40f4f476f1291e466c094c96e3c33b190.tar.bz2
csaa-ccf72af40f4f476f1291e466c094c96e3c33b190.tar.xz
Finish fixing off-by-one error
-rwxr-xr-xtestmodify.sh2
-rwxr-xr-xtestmodifyenc.sh2
-rwxr-xr-xtestretrieve.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/testmodify.sh b/testmodify.sh
index 31bce52..017f78c 100755
--- a/testmodify.sh
+++ b/testmodify.sh
@@ -2,7 +2,7 @@
# modify files $3 - ($3 + $2), creating a new version with fixed contents
echo "Modify:"
-stop=$(echo "$3+$2" | bc)
+stop=$(echo "$3+$2-1" | bc)
for i in $(seq $3 $stop)
do
diff --git a/testmodifyenc.sh b/testmodifyenc.sh
index 5a3b10c..5376c6a 100755
--- a/testmodifyenc.sh
+++ b/testmodifyenc.sh
@@ -1,7 +1,7 @@
#!/bin/bash
echo "Modify (encrypted):"
-stop=$(echo "$3+$2" | bc)
+stop=$(echo "$3+$2-1" | bc)
for i in $(seq $3 $stop)
do
diff --git a/testretrieve.sh b/testretrieve.sh
index 9a98f3f..05bfdb1 100755
--- a/testretrieve.sh
+++ b/testretrieve.sh
@@ -2,7 +2,7 @@
# retrieve files $3-($3+$2), outputting to `out'
echo "Retrieve:"
-stop=$(echo "$3+$2" | bc)
+stop=$(echo "$3+$2-1" | bc)
for i in $(seq $3 $stop)
do