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