Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
577380e9
Commit
577380e9
authored
Jul 27, 2017
by
Ondrej Simek
Browse files
Few fixes for shellcheck
parent
235b5b0c
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_he.sh
View file @
577380e9
...
...
@@ -154,7 +154,7 @@ _find_zone() {
_debug
"Zone
\"
$_attempted_zone
\"
doesn't exist, let's try a less"
\
"specific zone."
_strip_counter
=
$(
_math
$_strip_counter
+ 1
)
_strip_counter
=
$(
_math
"
$_strip_counter
"
+ 1
)
done
}
...
...
@@ -171,11 +171,11 @@ _find_zone() {
_find_linenum
()
{
_current_line_num
=
0
while
read
line
;
do
_current_line_num
=
$(
expr
"
$_current_line_num
"
+ 1
)
while
read
-r
line
;
do
_current_line_num
=
$(
_math
"
$_current_line_num
"
+ 1
)
if
[
"
$line
"
=
"
$1
"
]
;
then
# Found! Let's echo the line number and quit
echo
$_current_line_num
echo
"
$_current_line_num
"
return
0
fi
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment