Remove one unnecessary string-to-array-to-string from get_curve_name().

This commit is contained in:
Richard Soderberg 2015-09-05 04:10:58 -07:00
parent 9ea1749f6c
commit 5c09af67fd
1 changed files with 1 additions and 2 deletions

View File

@ -324,8 +324,7 @@ get_curve_name() {
for c in "${CURVES_MAP[@]}"; do for c in "${CURVES_MAP[@]}"; do
if [[ "$c" =~ $identifier ]]; then if [[ "$c" =~ $identifier ]]; then
verbose "$c matches identifier $identifier" verbose "$c matches identifier $identifier"
local map=(${c// / }) echo "${c%% *}"
echo ${map[0]}
return return
fi fi
done done