pfetch: use regular EOF

This commit is contained in:
Dylan Araps 2019-09-24 10:48:11 +03:00
parent facc6cecaa
commit eb7d543fd8

5
pfetch
View File

@ -63,10 +63,7 @@ main() {
# Store the output of 'uname' to avoid calling it multiple times # Store the output of 'uname' to avoid calling it multiple times
# throughout the script. 'read <<EOF' is the simplest way of reading # throughout the script. 'read <<EOF' is the simplest way of reading
# a command into a list of variables. # a command into a list of variables.
# read -r kernel_name kernel_version kernel_machine <<EOF
# NOTE: To avoid breaking indentation with 'EOF', '-EOF' is used.
# This has the caveat that the lines be TAB indented.
read -r kernel_name kernel_version kernel_machine <<-EOF
$(uname -srm) $(uname -srm)
EOF EOF