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
f23b0aac
Unverified
Commit
f23b0aac
authored
Apr 08, 2019
by
chasefox
Committed by
GitHub
Apr 08, 2019
Browse files
Remove here string
CI doesn't want here strings
parent
98d27c4a
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_gcloud.sh
View file @
f23b0aac
...
@@ -139,7 +139,7 @@ _dns_gcloud_find_zone() {
...
@@ -139,7 +139,7 @@ _dns_gcloud_find_zone() {
--format
=
"value(name, dnsName)"
\
--format
=
"value(name, dnsName)"
\
--filter
=
"
$filter
"
\
--filter
=
"
$filter
"
\
|
while
read
-r
dnsName name
;
do
|
while
read
-r
dnsName name
;
do
printf
"%s
\t
%s
\t
%s
\n
"
"
$(
awk
-F
"."
'{print NF-1}'
<<<
"
$name
"
)
"
"
$dnsName
"
"
$name
"
printf
"%s
\t
%s
\t
%s
\n
"
"
$(
echo
$name
|
awk
-F
"."
'{print NF-1}'
)
"
"
$dnsName
"
"
$name
"
done
\
done
\
|
sort
-n
-r
| _head_n 1 |
cut
-f2
,3 |
grep
'^.*'
)
;
then
|
sort
-n
-r
| _head_n 1 |
cut
-f2
,3 |
grep
'^.*'
)
;
then
_err
"_dns_gcloud_find_zone: Can't find a matching managed zone! Perhaps wrong project or gcloud credentials?"
_err
"_dns_gcloud_find_zone: Can't find a matching managed zone! Perhaps wrong project or gcloud credentials?"
...
...
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