Commit 860c03fe authored by Matteo Melli's avatar Matteo Melli
Browse files

ssh_remote as a function

parent 5fc789fe
#!/bin/bash
set -eu
shopt -s expand_aliases
alias ssh_remote="ssh "
[[ $# -lt 1 ]] && { echo "Specify the environment"; exit 1 ; }
......
#!/bin/bash
function ssh_remote(){
ssh "$@"
}
function do_step(){
echo "Executing: $@"
"$@" || { echo "Step `$@` Failed." ; exit 2 ; } \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment