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
46ee74ed
Commit
46ee74ed
authored
Feb 22, 2020
by
dkerr64
Browse files
Remove variable from info/error printout that could potentially expose login credentials.
parent
806b746f
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/ssh.sh
View file @
46ee74ed
...
@@ -251,14 +251,14 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d
...
@@ -251,14 +251,14 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d
_ssh_remote_cmd
()
{
_ssh_remote_cmd
()
{
_cmd
=
"
$1
"
_cmd
=
"
$1
"
_secure_debug
"Remote commands to execute:
$_cmd
"
_secure_debug
"Remote commands to execute:
$_cmd
"
_info
"Submitting sequence of commands to remote server by
$Le_Deploy_ssh_cmd
"
_info
"Submitting sequence of commands to remote server by
ssh
"
# quotations in bash cmd below intended. Squash travis spellcheck error
# quotations in bash cmd below intended. Squash travis spellcheck error
# shellcheck disable=SC2029
# shellcheck disable=SC2029
$Le_Deploy_ssh_cmd
"
$Le_Deploy_ssh_user
@
$Le_Deploy_ssh_server
"
sh
-c
"'
$_cmd
'"
$Le_Deploy_ssh_cmd
"
$Le_Deploy_ssh_user
@
$Le_Deploy_ssh_server
"
sh
-c
"'
$_cmd
'"
_err_code
=
"
$?
"
_err_code
=
"
$?
"
if
[
"
$_err_code
"
!=
"0"
]
;
then
if
[
"
$_err_code
"
!=
"0"
]
;
then
_err
"Error code
$_err_code
returned from
$Le_Deploy_ssh_cmd
"
_err
"Error code
$_err_code
returned from
ssh
"
fi
fi
return
$_err_code
return
$_err_code
...
...
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