Przeglądaj źródła

Clean up xt.dash syntax

Alois Mahdal 10 miesięcy temu
rodzic
commit
26dd9be422
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3
    3
      dotfiles/config/i3/macros/xt.dash

+ 3
- 3
dotfiles/config/i3/macros/xt.dash Wyświetl plik

7
     local nlcount;
7
     local nlcount;
8
     local lastchr;
8
     local lastchr;
9
     local single=keep;
9
     local single=keep;
10
-    case $arg in 
10
+    case $arg in
11
         -c | --chop-single)
11
         -c | --chop-single)
12
             single=chop
12
             single=chop
13
         ;;
13
         ;;
21
     cat > "$cache";
21
     cat > "$cache";
22
     nlcount=$(<"$cache" wc -l);
22
     nlcount=$(<"$cache" wc -l);
23
     lastchr=$(<"$cache" tail -c1 | hexdump -e '"%02x"');
23
     lastchr=$(<"$cache" tail -c1 | hexdump -e '"%02x"');
24
-    case $nlcount:$lastchr:$single in 
24
+    case $nlcount:$lastchr:$single in
25
         0:??:*)
25
         0:??:*)
26
             cat "$cache"
26
             cat "$cache"
27
         ;;
27
         ;;
42
     rm "$cache"
42
     rm "$cache"
43
 }
43
 }
44
 
44
 
45
-main () { 
45
+main () {
46
     local body;
46
     local body;
47
     body="$(xclip -o)"
47
     body="$(xclip -o)"
48
 #   declare -p body >~/body.declare
48
 #   declare -p body >~/body.declare