1
0
Fork 0
forked from ahurac/dotfiles

Suppression de la fonction parse_variable

This commit is contained in:
Hippolyte Chauvin 2023-11-11 17:01:48 +01:00
parent f1395291d7
commit 7297666d6c

View file

@ -11,10 +11,6 @@ error_null_arg() {
error 1
}
parse_variable() {
! :
}
# Parser les variables
trap error_null_arg EXIT
set -e
@ -22,10 +18,6 @@ set -e
ssh_host="$1"
shift
parse_variable ssh_host "$1" 'SSH host'
parse_variable local_port 'local port'
parse_variable distant_port 'distant port'
trap - EXIT
set +e