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" ] \