summaryrefslogtreecommitdiff
path: root/contrib/maxlen.bash
diff options
context:
space:
mode:
authora13460542021-08-31 17:01:47 +0000
committerrfjakob2021-09-01 10:22:01 +0200
commitc63f7e9f64ee394b3311edb7f36f56fd786d145a (patch)
tree84dec7ad0b4759532f622174c008e3aa645c5a29 /contrib/maxlen.bash
parentc505e73a13d8e2083b53c5c1af1f937b46665abd (diff)
shell scripts: fix shellcheck warnings
Diffstat (limited to 'contrib/maxlen.bash')
-rwxr-xr-xcontrib/maxlen.bash8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/maxlen.bash b/contrib/maxlen.bash
index 99ffb1f..be5f7a6 100755
--- a/contrib/maxlen.bash
+++ b/contrib/maxlen.bash
@@ -32,8 +32,8 @@ while true ; do
echo "error: file $PWD/$NEXT already exists"
exit 1
fi
- echo -n 2> /dev/null > $NEXT || break
- rm $NEXT
+ echo -n 2> /dev/null > "$NEXT" || break
+ rm "$NEXT"
NAME="$NEXT"
done
echo "${#NAME}"
@@ -47,8 +47,8 @@ if [[ $QUICK -ne 1 ]]; then
NAME=""
while true ; do
NEXT="${NAME}x"
- mkdir $NEXT 2> /dev/null || break
- rmdir $NEXT
+ mkdir "$NEXT" 2> /dev/null || break
+ rmdir "$NEXT"
NAME="$NEXT"
done
MAX_DIRNAME=${#NAME}