Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
e275cb1e
Commit
e275cb1e
authored
Nov 23, 2022
by
neil
Browse files
fix shellcheck warnings
parent
60315e5b
Changes
3
Hide whitespace changes
Inline
Side-by-side
.github/workflows/shellcheck.yml
View file @
e275cb1e
...
...
@@ -26,7 +26,7 @@ jobs:
-
name
:
Install Shellcheck
run
:
sudo apt-get install -y shellcheck
-
name
:
DoShellcheck
run
:
shellcheck -V && shellcheck -e SC2181 **/*.sh && echo "shellcheck OK"
run
:
shellcheck -V && shellcheck -e SC2181
-e SC2089
**/*.sh && echo "shellcheck OK"
shfmt
:
runs-on
:
ubuntu-latest
...
...
deploy/gitlab.sh
View file @
e275cb1e
...
...
@@ -67,7 +67,7 @@ gitlab_deploy() {
error_response
=
"error"
if
test
${
_response
#*
"
$error_response
"
}
!=
"
$_response
"
;
then
if
test
"
${
_response
#*
"
$error_response
"
}
"
!=
"
$_response
"
;
then
_err
"Error in deploying certificate:"
_err
"
$_response
"
return
1
...
...
dnsapi/dns_dynv6.sh
View file @
e275cb1e
...
...
@@ -94,7 +94,7 @@ _get_domain() {
_your_hosts
=
"
$(
echo
"
$_your_hosts
"
|
awk
'/\./ {print $1}'
)
"
for
l
in
$_your_hosts
;
do
#echo "host: $l"
if
test
${
_full_domain
#*
"
$l
"
}
!=
"
$_full_domain
"
;
then
if
test
"
${
_full_domain
#*
"
$l
"
}
"
!=
"
$_full_domain
"
;
then
_record
=
${
_full_domain
%.
"
$l
"
}
_host
=
$l
_debug
"The host is
$_host
and the record
$_record
"
...
...
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