summaryrefslogtreecommitdiff
path: root/tests/maxlen.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-10-04 10:26:22 +0200
committerJakob Unterwurzacher2016-10-04 10:26:22 +0200
commitb068ffbff9ff8ca962eb8fe0f404fc92f92ea859 (patch)
tree94a69a4a544028b4328287d602ab6c2ffb1c7f2b /tests/maxlen.bash
parent56c0b19612dd25b84474211c1a84897fe89ce7d4 (diff)
maxlen.bash: result was 1 too high
Additionally, output 0 instead of 7 on permission errors.
Diffstat (limited to 'tests/maxlen.bash')
-rwxr-xr-xtests/maxlen.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/maxlen.bash b/tests/maxlen.bash
index f009df2..fb133e0 100755
--- a/tests/maxlen.bash
+++ b/tests/maxlen.bash
@@ -6,13 +6,13 @@
# https://nuetzlich.net/gocryptfs/
NAME="maxlen."
-LEN=7
+LEN=0
while [ $LEN -le 10000 ]; do
touch $NAME 2> /dev/null || break
rm $NAME
+ LEN=${#NAME}
NAME="${NAME}x"
- let LEN=LEN+1
done
echo $LEN