Syntax fix

This commit is contained in:
Maniack Crudelis 2019-03-16 16:53:07 +01:00 committed by GitHub
parent ad748a75f6
commit 652edc204c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -203,7 +203,7 @@ ynh_handle_getopts_args () {
# Escape double quote to prevent any interpretation during the eval # Escape double quote to prevent any interpretation during the eval
arguments[$i]="${arguments[$i]//\"/\\\"}" arguments[$i]="${arguments[$i]//\"/\\\"}"
# Escape $ as well to prevent the string following it to be seen as a variable. # Escape $ as well to prevent the string following it to be seen as a variable.
all_args[$i]="${all_args[$i]//$/\\\$}" arguments[$i]="${arguments[$i]//$/\\\$}"
# Store each value given as argument in the corresponding variable # Store each value given as argument in the corresponding variable
# The values will be stored in the same order than $args_array # The values will be stored in the same order than $args_array