aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-24 10:48:11 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-24 10:48:11 +0300
commiteb7d543fd837d1548fe57d7547b9a6aa9e0562c9 (patch)
tree5e9ce2abb51088a3fadf7c571da81776cddb0b83
parentfacc6cecaa49e19e4f4ff2328013f77178dd0847 (diff)
downloadpfetch-eb7d543fd837d1548fe57d7547b9a6aa9e0562c9.tar.gz
pfetch: use regular EOF
-rwxr-xr-xpfetch9
1 files changed, 3 insertions, 6 deletions
diff --git a/pfetch b/pfetch
index d4c11de..7c01240 100755
--- a/pfetch
+++ b/pfetch
@@ -63,12 +63,9 @@ main() {
# Store the output of 'uname' to avoid calling it multiple times
# throughout the script. 'read <<EOF' is the simplest way of reading
# a command into a list of variables.
- #
- # 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)
- EOF
+ read -r kernel_name kernel_version kernel_machine <<EOF
+ $(uname -srm)
+EOF
get_os
get_distro