diff --git a/src/script/arch-update.sh b/src/script/arch-update.sh index 463b5cd..b7357f4 100755 --- a/src/script/arch-update.sh +++ b/src/script/arch-update.sh @@ -383,8 +383,8 @@ list_news() { answer_array+=("${i}") done else - answer_array=$(printf "%s\n" "${answer_array[@]}") - answer_array=($(echo "${answer_array}" | awk '!seen[$0]++')) + array_to_string=$(printf "%s\n" "${answer_array[@]}") + answer_array=($(echo "${array_to_string}" | awk '!seen[$0]++')) fi for num in "${answer_array[@]}"; do