Merge branch 'wiscii-remove-copy_data_to_pki' (#521)

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-04-01 16:46:54 +01:00
commit 9970d626c1
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -676,7 +676,7 @@ install_data_to_pki () {
if [ -e "${EASYRSA_PKI}/${source}" ]; then
continue
else
copy_data_to_pki "${area}/${source}" || return
cp "${area}/${source}" "$EASYRSA_PKI" || return
fi
done
@ -729,12 +729,6 @@ install_data_to_pki () {
[ -e "$EASYRSA_SAFE_CONF" ] || easyrsa_openssl makesafeconf
} # => install_data_to_pki ()
# Copy the source to the PKI
copy_data_to_pki () {
cp "$1" "$EASYRSA_PKI" || return
shift
} # => copy_data_to_pki ()
# Disable terminal echo, if possible, otherwise warn
hide_read_pass()
{