1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

Missed non-POSIX array expansion.

This commit is contained in:
Vadim Zhukov
2018-07-11 11:36:38 +03:00
parent c67fb61662
commit 56b28daf4a
+1 -1
View File
@@ -246,7 +246,7 @@ EOF
if [ "$valid" = no ]; then
echo "Invalid section: $new_section"
echo "Valid sections:"
echo "${valid_sections[@]}" | xargs printf "%-10s\n" | tr ' ' . | xargs -n 10 | sed 's/\./ /g; s/^/ /'
echo $valid_sections | xargs printf "%-10s\n" | tr ' ' . | xargs -n 10 | sed 's/\./ /g; s/^/ /'
continue
else
section="$new_section"