diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-12-02 02:30:30 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-12-02 02:30:30 +0100 |
commit | 71b5da696cc59e22339b5db497032821e631a54f (patch) | |
tree | 8aa7f77fec62c9187c45309a23219a2892026fee | |
parent | 62ddaa6ea0a029afebeb746192dc9119f97431da (diff) | |
download | mkinitcpio-0.12.0.tar.gz mkinitcpio-0.12.0.tar.xz |
mkinitcpio: use fancy unicode in -L output0.12.0
Denote deprecation with unicode superscript footnote markers. Yes, this
inherently limits us to 9 deprecation notices in its current form, but
there really shouldn't ever be so many deprecated items at once.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-x | mkinitcpio | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -138,6 +138,7 @@ hook_help() { hook_list() { local n p hook resolved local -a paths hooklist depr + local ss_ordinals=(¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹) IFS=: read -ra paths <<<"$_d_install" @@ -165,7 +166,7 @@ hook_list() { n=$(( ${#depr[*]} - 1 )) fi - hook=$hook[$n] + hook=$hook${ss_ordinals[n]} fi hooklist+=("${hook##*/}") @@ -178,7 +179,8 @@ hook_list() { if (( ${#depr[*]} )); then echo for p in "${!depr[@]}"; do - printf "[%s]: This hook is deprecated in favor of '%s'\n" "$p" "${depr[p]}" + printf "%s This hook is deprecated in favor of '%s'\n" \ + "${ss_ordinals[p]}" "${depr[p]}" done fi } |