forked from oldratlee/useful-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit a17b7c2
refactor/robust(
NOTE:
- the `echo` option(e.g. -e -n) may effect correctness, `printf` is more robust 💪
- about `&&-||` see shell check:
https://www.shellcheck.net/wiki/SC2015 cp-into-docker-run): use printf 💪 instead of echo; use if-else instead of &&-||; improve portability(portableReadLink)1 parent 7d166fe commit a17b7c2
1 file changed
+18
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | - | ||
21 | - | ||
22 | - | ||
23 | - | ||
24 | - | ||
25 | - | ||
20 | + | ||
26 | 21 | | |
27 | - | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | - | ||
30 | + | ||
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
49 | + | ||
50 | 50 | | |
51 | 51 | | |
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
52 | 56 | | |
53 | - | ||
57 | + | ||
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
68 | - | ||
72 | + | ||
73 | + | ||
74 | + | ||
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
| |||
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
103 | - | ||
109 | + | ||
104 | 110 | | |
105 | 111 | | |
106 | 112 | | |
| |||
235 | 241 | | |
236 | 242 | | |
237 | 243 | | |
238 | - | ||
244 | + | ||
239 | 245 | | |
240 | 246 | | |
241 | 247 | | |
| |||
0 commit comments