Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-com
migration
Commits
860c03fe
Commit
860c03fe
authored
Aug 02, 2018
by
Matteo Melli
Browse files
ssh_remote as a function
parent
5fc789fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/database-wrangler/migration
View file @
860c03fe
#!/bin/bash
set
-eu
shopt
-s
expand_aliases
alias
ssh_remote
=
"ssh "
[[
$#
-lt
1
]]
&&
{
echo
"Specify the environment"
;
exit
1
;
}
...
...
bin/database-wrangler/utilities
View file @
860c03fe
#!/bin/bash
function
ssh_remote
(){
ssh
"
$@
"
}
function
do_step
(){
echo
"Executing:
$@
"
"
$@
"
||
{
echo
"Step
`
$@
`
Failed."
;
exit
2
;
}
\
...
...
Write
Preview
Supports
Markdown
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