This commit is contained in:
Josué Tille 2020-04-29 13:38:11 +02:00
parent a3fb329f21
commit 9757ef2ddd
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -274,9 +274,9 @@ ynh_permission_create() {
# Convert a list from getopts to python list # Convert a list from getopts to python list
# Note that getopts separate the args with ';' # Note that getopts separate the args with ';'
# By example: # By example:
# --additional_urls /urlA /urlB # --allowed alice bob
# will be: # will be:
# additional_urls=['/urlA', '/urlB'] # allowed=['alice', 'bob']
allowed=",allowed=['${allowed//;/\',\'}']" allowed=",allowed=['${allowed//;/\',\'}']"
fi fi
@ -384,9 +384,9 @@ ynh_permission_url() {
# Convert a list from getopts to python list # Convert a list from getopts to python list
# Note that getopts separate the args with ';' # Note that getopts separate the args with ';'
# By example: # By example:
# --additional_urls /urlA /urlB # --add_url /urlA /urlB
# will be: # will be:
# additional_urls=['/urlA', '/urlB'] # add_url=['/urlA', '/urlB']
add_url=",add_url=['${add_url//;/\',\'}']" add_url=",add_url=['${add_url//;/\',\'}']"
fi fi
@ -395,9 +395,9 @@ ynh_permission_url() {
# Convert a list from getopts to python list # Convert a list from getopts to python list
# Note that getopts separate the args with ';' # Note that getopts separate the args with ';'
# By example: # By example:
# --additional_urls /urlA /urlB # --remove_url /urlA /urlB
# will be: # will be:
# additional_urls=['/urlA', '/urlB'] # remove_url=['/urlA', '/urlB']
remove_url=",remove_url=['${remove_url//;/\',\'}']" remove_url=",remove_url=['${remove_url//;/\',\'}']"
fi fi
@ -455,9 +455,9 @@ ynh_permission_update() {
# Convert a list from getopts to python list # Convert a list from getopts to python list
# Note that getopts separate the args with ';' # Note that getopts separate the args with ';'
# By example: # By example:
# --additional_urls /urlA /urlB # --add alice bob
# will be: # will be:
# additional_urls=['/urlA', '/urlB'] # add=['alice', 'bob']
add=",add=['${add//';'/"','"}']" add=",add=['${add//';'/"','"}']"
fi fi
if [[ -n $remove ]] if [[ -n $remove ]]
@ -465,9 +465,9 @@ ynh_permission_update() {
# Convert a list from getopts to python list # Convert a list from getopts to python list
# Note that getopts separate the args with ';' # Note that getopts separate the args with ';'
# By example: # By example:
# --additional_urls /urlA /urlB # --remove alice bob
# will be: # will be:
# additional_urls=['/urlA', '/urlB'] # remove=['alice', 'bob']
remove=",remove=['${remove//';'/"','"}']" remove=",remove=['${remove//';'/"','"}']"
fi fi