Skip to content

Commit

Permalink
lib/utilities: cat
Browse files Browse the repository at this point in the history
No need to pipe to `cat` then redirect to disk. Just redirect directly to the file without `cat` at all.
  • Loading branch information
gaelicWizard committed Sep 6, 2021
1 parent 2773e2f commit 75d756a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utilities.bash
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ _bash-it-component-help() {
if [[ ! -s "${file}" || -z "$(find "${file}" -mmin -300)" ]] ; then
rm -f "${file}" 2>/dev/null
local func="_bash-it-${component}"
${func} | $(_bash-it-grep) -E ' \[' | cat > "${file}"
${func} | $(_bash-it-grep) -E ' \[' > "${file}"
fi
cat "${file}"
}
Expand Down

0 comments on commit 75d756a

Please sign in to comment.