From 05a119ecf69b35e6896d24271f5a656fa4e48225 Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Thu, 17 Jun 2021 08:25:53 -0400 Subject: [PATCH] 80col (mostly) --- dotfiles-old/bin/data | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dotfiles-old/bin/data b/dotfiles-old/bin/data index 1e59282..ee37fe4 100755 --- a/dotfiles-old/bin/data +++ b/dotfiles-old/bin/data @@ -52,12 +52,15 @@ get_cpu_temp() { } get_memory_usage() { - printf "%b" "$(free | head -n 2 | tail -n 1 | awk '{print $3 " used / " $2 " total"}')" + printf "%b" \ + "$(free | head -n 2 | tail -n 1 \ + | awk '{print $3 " used / " $2 " total"}')" return } get_public_ip() { - curl "$PUBLIC_IP_FETCH_URL" --no-progress-meter 2>/dev/null || printf "[error fetching IP]\n" + curl "$PUBLIC_IP_FETCH_URL" --no-progress-meter 2>/dev/null \ + || printf "[error fetching IP]\n" return } @@ -128,7 +131,8 @@ fi [ -n "$INTERVAL" ] && stris int "$INTERVAL" \ || INTERVAL=1 \ && true -[ -n "$CPU_TEMP_SCALE" ] && stris int "$CPU_TEMP_SCALE" && gt "$CPU_TEMP_SCALE" 0 \ +[ -n "$CPU_TEMP_SCALE" ] && stris int "$CPU_TEMP_SCALE" \ + && gt "$CPU_TEMP_SCALE" 0 \ || CPU_TEMP_SCALE=1 \ && true [ -n "$CPU_TEMP_FILES" ] \