Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
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
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
bin/database-wrangler/migration
bin/database-wrangler/migration
+0
-3
bin/database-wrangler/utilities
bin/database-wrangler/utilities
+4
-0
No files found.
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
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