diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2025-08-15 21:56:16 +0500 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2025-08-15 21:56:16 +0500 |
| commit | 8a7543107407e32b3bfe0cff7d34fb8b0eb17f00 (patch) | |
| tree | 09b336e4528d4a03b09ea3830c1c951bdae4b614 /units/help.zsh | |
| parent | 77c1443a3ff2146d48cbf7cf2e6eec28faf17df5 (diff) | |
*/*: Remove unnecessary pipes
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
Diffstat (limited to 'units/help.zsh')
| -rw-r--r-- | units/help.zsh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/units/help.zsh b/units/help.zsh index fdc076c..ea1e486 100644 --- a/units/help.zsh +++ b/units/help.zsh @@ -2,14 +2,14 @@ # Copyright (C) 2024-2025 Danil Lisin # SPDX-License-Identifier: Apache-2.0 -output_text="$(< "${files}/help.txt" | sed "s/{version}/${version}/")" +output_text="$(sed "s/{version}/${version}/" < "${files}/help.txt")" if [[ -n "${nocommand_donate}" ]] then - output_text="$(printf "%s" "${output_text}" | sed -e '/^<code>donate.*$/d' -e '/^\/donate.*$/d')" + output_text="$(sed -e '/^<code>donate.*$/d' -e '/^\/donate.*$/d' <<< "${output_text}")" fi if [[ -n "${nocommand_source}" ]] then - output_text="$(printf "%s" "${output_text}" | sed -e '/^\[snkey\].*$/d' -e '/^\/source.*$/d')" + output_text="$(sed -e '/^\[snkey\].*$/d' -e '/^\/source.*$/d' <<< "${output_text}")" fi |
