소스 검색

Fixed spacing.

Yannick Boetzel 7 년 전
부모
커밋
5584b4e0f7
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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