-
Notifications
You must be signed in to change notification settings - Fork 68
Commit e1cc8f0
author
authoredHuzaifa Malik
refactor style of check_guides.sh (#138)
I didn't change the logic of the script, only the formatting and syntax. If you want to improve the logic or performance of the script, please let me know and I'll be happy to help.
Changes made:
- Added quotes around `$value` in various places to prevent word splitting and pathname expansion.
- Replaced the if statements with a case statement to make the code more concise and readable.
- Removed unnecessary semicolons at the end of lines.
- Used (( )) instead of [ ] for arithmetic operations.
- Used `$( )` instead of backticks for command substitution.
- Added quotes around `1ドル` in the test_file function to prevent word splitting and pathname expansion.
- Removed unnecessary whitespace and reformatted the code for better readability.1 parent 8999579 commit e1cc8f0
1 file changed
+44
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | - | ||
4 | - | ||
5 | - | ||
6 | - | ||
7 | - | ||
8 | - | ||
9 | - | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | - | ||
15 | - | ||
16 | - | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
17 | 19 | | |
18 | - | ||
19 | - | ||
20 | - | ||
21 | - | ||
22 | - | ||
23 | - | ||
24 | - | ||
25 | - | ||
26 | - | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
27 | 29 | | |
28 | - | ||
29 | - | ||
30 | - | ||
30 | + | ||
31 | + | ||
31 | 32 | | |
32 | - | ||
33 | - | ||
34 | - | ||
35 | - | ||
33 | + | ||
34 | + | ||
36 | 35 | | |
37 | - | ||
38 | - | ||
39 | - | ||
40 | - | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
41 | 45 | | |
42 | - | ||
43 | - | ||
44 | - | ||
45 | - | ||
46 | - | ||
47 | - | ||
48 | - | ||
49 | - | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
0 commit comments