Commit 1a7dcaa9 authored by Matteo Melli's avatar Matteo Melli

ssh_remote as a function

parent 93ed1e23
Pipeline #88401 passed with stage
in 26 seconds
#!/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