Commit 577380e9 authored by Ondrej Simek's avatar Ondrej Simek
Browse files

Few fixes for shellcheck

parent 235b5b0c
...@@ -154,7 +154,7 @@ _find_zone() { ...@@ -154,7 +154,7 @@ _find_zone() {
_debug "Zone \"$_attempted_zone\" doesn't exist, let's try a less" \ _debug "Zone \"$_attempted_zone\" doesn't exist, let's try a less" \
"specific zone." "specific zone."
_strip_counter=$(_math $_strip_counter + 1) _strip_counter=$(_math "$_strip_counter" + 1)
done done
} }
...@@ -171,11 +171,11 @@ _find_zone() { ...@@ -171,11 +171,11 @@ _find_zone() {
_find_linenum() { _find_linenum() {
_current_line_num=0 _current_line_num=0
while read line; do while read -r line; do
_current_line_num=$(expr "$_current_line_num" + 1) _current_line_num=$(_math "$_current_line_num" + 1)
if [ "$line" = "$1" ]; then if [ "$line" = "$1" ]; then
# Found! Let's echo the line number and quit # Found! Let's echo the line number and quit
echo $_current_line_num echo "$_current_line_num"
return 0 return 0
fi fi
done done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment