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
ecba959d
Commit
ecba959d
authored
Dec 07, 2017
by
speedmann
Browse files
Fix missed whitespaces
parent
a8202d4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_inwx.sh
View file @
ecba959d
...
@@ -155,7 +155,7 @@ dns_inwx_rm() {
...
@@ -155,7 +155,7 @@ dns_inwx_rm() {
if
!
printf
"%s"
"
$response
"
|
grep
"count"
-q
;
then
if
!
printf
"%s"
"
$response
"
|
grep
"count"
-q
;
then
_info
"Do not need to delete record"
_info
"Do not need to delete record"
else
else
_record_id
=
$(
printf
'%s'
"
$response
"
|
sed
-nE
's/.*(<member><name>record){1}(.*)(<name>id<\/name><value><int>)([0-9]+){1}.*/\4/p'
)
_record_id
=
$(
printf
'%s'
"
$response
"
|
sed
-nE
's/.*(<member><name>record){1}(.*)(<name>id<\/name><value><int>)([0-9]+){1}.*/\4/p'
)
_info
"Deleting record"
_info
"Deleting record"
_inwx_delete_record
"
$_record_id
"
_inwx_delete_record
"
$_record_id
"
fi
fi
...
@@ -253,7 +253,7 @@ _inwx_delete_record() {
...
@@ -253,7 +253,7 @@ _inwx_delete_record() {
</param>
</param>
</params>
</params>
</methodCall>'
"
$record_id
"
</methodCall>'
"
$record_id
"
response
=
"
$(
_post
"
$xml_content
"
"
$INWX_Api
"
""
"POST"
)
"
response
=
"
$(
_post
"
$xml_content
"
"
$INWX_Api
"
""
"POST"
)
"
if
!
printf
"%s"
"
$response
"
|
grep
"Command completed successfully"
>
/dev/null
;
then
if
!
printf
"%s"
"
$response
"
|
grep
"Command completed successfully"
>
/dev/null
;
then
...
@@ -261,7 +261,7 @@ _inwx_delete_record() {
...
@@ -261,7 +261,7 @@ _inwx_delete_record() {
return
1
return
1
fi
fi
return
0
return
0
}
}
_inwx_update_record
()
{
_inwx_update_record
()
{
...
@@ -293,13 +293,13 @@ _inwx_update_record() {
...
@@ -293,13 +293,13 @@ _inwx_update_record() {
</methodCall>'
"
$txtval
"
"
$record_id
"
</methodCall>'
"
$txtval
"
"
$record_id
"
response
=
"
$(
_post
"
$xml_content
"
"
$INWX_Api
"
""
"POST"
)
"
response
=
"
$(
_post
"
$xml_content
"
"
$INWX_Api
"
""
"POST"
)
"
if
!
printf
"%s"
"
$response
"
|
grep
"Command completed successfully"
>
/dev/null
;
then
if
!
printf
"%s"
"
$response
"
|
grep
"Command completed successfully"
>
/dev/null
;
then
_err
"Error"
_err
"Error"
return
1
return
1
fi
fi
return
0
return
0
}
}
_inwx_add_record
()
{
_inwx_add_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