Parcourir la source

Fixed spacing.

Yannick Boetzel il y a 7 ans
Parent
commit
5584b4e0f7
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      30-zpool-bar
  2. 1 1
      35-diskspace

+ 1 - 1
30-zpool-bar

@@ -40,6 +40,6 @@ for line in "${zpools[@]}"; do
     done
     bar+="${undim}]"
     # print usage line & bar
-    echo "${line}" | awk '{ printf("%-10s%+3s used out of %+5s\n", $1, $2, $3); }' | sed -e 's/^/  /'
+    echo "${line}" | awk '{ printf("%-30s%+3s used out of %+5s\n", $1, $2, $3); }' | sed -e 's/^/  /'
     echo -e "${bar}" | sed -e 's/^/  /'
 done

+ 1 - 1
35-diskspace

@@ -36,6 +36,6 @@ for line in "${dfs[@]}"; do
     done
     bar+="${undim}]"
     # print usage line & bar
-    echo "${line}" | awk '{ printf("%-30s%+3s used out of %+5s\n", $1, $2, $3); }' | sed -e 's/^/  /'
+    echo "${line}" | awk '{ printf("%-31s%+3s used out of %+4s\n", $1, $2, $3); }' | sed -e 's/^/  /'
     echo -e "${bar}" | sed -e 's/^/  /'
 done