Minor fix to avoid the key to be used if not asked

This commit is contained in:
Maniack Crudelis 2020-04-09 23:47:16 +02:00 committed by GitHub
parent 3234b14b78
commit b06e8c0f7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -337,7 +337,7 @@ ynh_install_extra_app_dependencies () {
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
name="${name:-$app}"
key=${key:-0}
key=${key:-}
# Set a key only if asked
if [ -n "$key" ]
@ -377,7 +377,7 @@ ynh_install_extra_repo () {
ynh_handle_getopts_args "$@"
name="${name:-$app}"
append=${append:-0}
key=${key:-0}
key=${key:-}
priority=${priority:-}
if [ $append -eq 1 ]