Skip to content

Commit 060de87

Browse files
committed
chore: minor changes
Signed-off-by: ale5000 <15793015+ale5000-git@users.noreply.github.com>
1 parent a0aafed commit 060de87

File tree

7 files changed

+23
-28
lines changed

7 files changed

+23
-28
lines changed

README.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,11 @@ occasional social obligation.
130130
If it's saved you time, or frustration, please consider supporting its
131131
development!
132132

133-
Wondering how? Check out all the ways to `fuel this project
134-
<./docs/DONATE.rst>`_ — coffee, kind words, or cold hard crypto, it's all
135-
welcome. *(No pressure. But the coffee does make the bugs fix themselves
136-
slightly faster.)*
133+
| Wondering how?
134+
| Check out all the ways to `fuel this project <./docs/DONATE.rst>`_ —
135+
coffee, kind words, or cold hard crypto, it's all welcome.
136+
| *(No pressure. But the coffee does make the bugs fix themselves slightly
137+
faster.)*
137138
138139

139140
Copyright

set-git-local-config.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,17 @@
55
pause_if_needed()
66
{
77
# shellcheck disable=SC3028 # Ignore: In POSIX sh, SHLVL is undefined
8-
if test "${NO_PAUSE:-0}" = '0' && test "${no_pause:-0}" = '0' && test "${CI:-false}" = 'false' && test "${TERM_PROGRAM:-unknown}" != 'vscode' && test "${SHLVL:-1}" = '1' && test -t 0 && test -t 1 && test -t 2; then
8+
if test "${NO_PAUSE:-0}" = '0' && test "${no_pause:-0}" = '0' && test "${CI:-false}" = 'false' && test "${TERM_PROGRAM:-none}" != 'vscode' && test "${SHLVL:-1}" = '1' && test -t 0 && test -t 1 && test -t 2; then
99
if test -n "${NO_COLOR-}"; then
1010
printf 1>&2 '\n%s' 'Press any key to exit... ' || :
1111
else
1212
printf 1>&2 '\n\033[1;32m\r%s' 'Press any key to exit... ' || :
1313
fi
1414
# shellcheck disable=SC3045 # Ignore: In POSIX sh, read -s / -n is undefined
1515
IFS='' read 2> /dev/null 1>&2 -r -s -n1 _ || IFS='' read 1>&2 -r _ || :
16-
printf 1>&2 '\n' || :
17-
test -n "${NO_COLOR-}" || printf 1>&2 '\033[0m\r \r' || :
16+
if test -n "${NO_COLOR-}"; then printf 1>&2 '\n' || :; else printf 1>&2 '\n\033[0m\r \r' || :; fi
1817
fi
19-
unset no_pause || :
18+
unset no_pause
2019
return "${1:-0}"
2120
}
2221

tools/bits-info.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,18 +1132,17 @@ clear_env()
11321132
pause_if_needed()
11331133
{
11341134
# shellcheck disable=SC3028 # Ignore: In POSIX sh, SHLVL is undefined
1135-
if test "${NO_PAUSE:-0}" = '0' && test "${no_pause:-0}" = '0' && test "${CI:-false}" = 'false' && test "${TERM_PROGRAM:-unknown}" != 'vscode' && test "${SHLVL:-1}" = '1' && test -t 0 && test -t 1 && test -t 2; then
1135+
if test "${NO_PAUSE:-0}" = '0' && test "${no_pause:-0}" = '0' && test "${CI:-false}" = 'false' && test "${TERM_PROGRAM:-none}" != 'vscode' && test "${SHLVL:-1}" = '1' && test -t 0 && test -t 1 && test -t 2; then
11361136
if test -n "${NO_COLOR-}"; then
11371137
printf 1>&2 '\n%s' 'Press any key to exit... ' || :
11381138
else
11391139
printf 1>&2 '\n\033[1;32m\r%s' 'Press any key to exit... ' || :
11401140
fi
11411141
# shellcheck disable=SC3045 # Ignore: In POSIX sh, read -s / -n is undefined
11421142
IFS='' read 2> /dev/null 1>&2 -r -s -n1 _ || IFS='' read 1>&2 -r _ || :
1143-
printf 1>&2 '\n' || :
1144-
test -n "${NO_COLOR-}" || printf 1>&2 '\033[0m\r \r' || :
1143+
if test -n "${NO_COLOR-}"; then printf 1>&2 '\n' || :; else printf 1>&2 '\n\033[0m\r \r' || :; fi
11451144
fi
1146-
unset no_pause || :
1145+
unset no_pause
11471146
return "${1:-0}"
11481147
}
11491148

tools/dl-perm-list.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,17 @@ readonly DL_ACCEPT_LANG_HEADER='Accept-Language: en-US,en;q=0.5'
5757
pause_if_needed()
5858
{
5959
# shellcheck disable=SC3028 # Ignore: In POSIX sh, SHLVL is undefined
60-
if test "${NO_PAUSE:-0}" = '0' && test "${no_pause:-0}" = '0' && test "${CI:-false}" = 'false' && test "${TERM_PROGRAM:-unknown}" != 'vscode' && test "${SHLVL:-1}" = '1' && test -t 0 && test -t 1 && test -t 2; then
60+
if test "${NO_PAUSE:-0}" = '0' && test "${no_pause:-0}" = '0' && test "${CI:-false}" = 'false' && test "${TERM_PROGRAM:-none}" != 'vscode' && test "${SHLVL:-1}" = '1' && test -t 0 && test -t 1 && test -t 2; then
6161
if test -n "${NO_COLOR-}"; then
6262
printf 1>&2 '\n%s' 'Press any key to exit... ' || :
6363
else
6464
printf 1>&2 '\n\033[1;32m\r%s' 'Press any key to exit... ' || :
6565
fi
6666
# shellcheck disable=SC3045 # Ignore: In POSIX sh, read -s / -n is undefined
6767
IFS='' read 2> /dev/null 1>&2 -r -s -n1 _ || IFS='' read 1>&2 -r _ || :
68-
printf 1>&2 '\n' || :
69-
test -n "${NO_COLOR-}" || printf 1>&2 '\033[0m\r \r' || :
68+
if test -n "${NO_COLOR-}"; then printf 1>&2 '\n' || :; else printf 1>&2 '\n\033[0m\r \r' || :; fi
7069
fi
71-
unset no_pause || :
70+
unset no_pause
7271
return "${1:-0}"
7372
}
7473

tools/generate-perm-xml.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,17 @@ set -u
3333
pause_if_needed()
3434
{
3535
# shellcheck disable=SC3028 # Ignore: In POSIX sh, SHLVL is undefined
36-
if test "${NO_PAUSE:-0}" = '0' && test "${no_pause:-0}" = '0' && test "${CI:-false}" = 'false' && test "${TERM_PROGRAM:-unknown}" != 'vscode' && test "${SHLVL:-1}" = '1' && test -t 0 && test -t 1 && test -t 2; then
36+
if test "${NO_PAUSE:-0}" = '0' && test "${no_pause:-0}" = '0' && test "${CI:-false}" = 'false' && test "${TERM_PROGRAM:-none}" != 'vscode' && test "${SHLVL:-1}" = '1' && test -t 0 && test -t 1 && test -t 2; then
3737
if test -n "${NO_COLOR-}"; then
3838
printf 1>&2 '\n%s' 'Press any key to exit... ' || :
3939
else
4040
printf 1>&2 '\n\033[1;32m\r%s' 'Press any key to exit... ' || :
4141
fi
4242
# shellcheck disable=SC3045 # Ignore: In POSIX sh, read -s / -n is undefined
4343
IFS='' read 2> /dev/null 1>&2 -r -s -n1 _ || IFS='' read 1>&2 -r _ || :
44-
printf 1>&2 '\n' || :
45-
test -n "${NO_COLOR-}" || printf 1>&2 '\033[0m\r \r' || :
44+
if test -n "${NO_COLOR-}"; then printf 1>&2 '\n' || :; else printf 1>&2 '\n\033[0m\r \r' || :; fi
4645
fi
47-
unset no_pause || :
46+
unset no_pause
4847
return "${1:-0}"
4948
}
5049

tools/get-signature.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,17 @@ case "$(set 2> /dev/null -o || set || :)" in *'pipefail'*) set -o pipefail || ec
2424
pause_if_needed()
2525
{
2626
# shellcheck disable=SC3028 # Ignore: In POSIX sh, SHLVL is undefined
27-
if test "${NO_PAUSE:-0}" = '0' && test "${no_pause:-0}" = '0' && test "${CI:-false}" = 'false' && test "${TERM_PROGRAM:-unknown}" != 'vscode' && test "${SHLVL:-1}" = '1' && test -t 0 && test -t 1 && test -t 2; then
27+
if test "${NO_PAUSE:-0}" = '0' && test "${no_pause:-0}" = '0' && test "${CI:-false}" = 'false' && test "${TERM_PROGRAM:-none}" != 'vscode' && test "${SHLVL:-1}" = '1' && test -t 0 && test -t 1 && test -t 2; then
2828
if test -n "${NO_COLOR-}"; then
2929
printf 1>&2 '\n%s' 'Press any key to exit... ' || :
3030
else
3131
printf 1>&2 '\n\033[1;32m\r%s' 'Press any key to exit... ' || :
3232
fi
3333
# shellcheck disable=SC3045 # Ignore: In POSIX sh, read -s / -n is undefined
3434
IFS='' read 2> /dev/null 1>&2 -r -s -n1 _ || IFS='' read 1>&2 -r _ || :
35-
printf 1>&2 '\n' || :
36-
test -n "${NO_COLOR-}" || printf 1>&2 '\033[0m\r \r' || :
35+
if test -n "${NO_COLOR-}"; then printf 1>&2 '\n' || :; else printf 1>&2 '\n\033[0m\r \r' || :; fi
3736
fi
38-
unset no_pause || :
37+
unset no_pause
3938
return "${1:-0}"
4039
}
4140

tools/list-app-perms.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,17 @@ case "$(set 2> /dev/null -o || set || :)" in *'pipefail'*) set -o pipefail || ec
2424
pause_if_needed()
2525
{
2626
# shellcheck disable=SC3028 # Ignore: In POSIX sh, SHLVL is undefined
27-
if test "${NO_PAUSE:-0}" = '0' && test "${no_pause:-0}" = '0' && test "${CI:-false}" = 'false' && test "${TERM_PROGRAM:-unknown}" != 'vscode' && test "${SHLVL:-1}" = '1' && test -t 0 && test -t 1 && test -t 2; then
27+
if test "${NO_PAUSE:-0}" = '0' && test "${no_pause:-0}" = '0' && test "${CI:-false}" = 'false' && test "${TERM_PROGRAM:-none}" != 'vscode' && test "${SHLVL:-1}" = '1' && test -t 0 && test -t 1 && test -t 2; then
2828
if test -n "${NO_COLOR-}"; then
2929
printf 1>&2 '\n%s' 'Press any key to exit... ' || :
3030
else
3131
printf 1>&2 '\n\033[1;32m\r%s' 'Press any key to exit... ' || :
3232
fi
3333
# shellcheck disable=SC3045 # Ignore: In POSIX sh, read -s / -n is undefined
3434
IFS='' read 2> /dev/null 1>&2 -r -s -n1 _ || IFS='' read 1>&2 -r _ || :
35-
printf 1>&2 '\n' || :
36-
test -n "${NO_COLOR-}" || printf 1>&2 '\033[0m\r \r' || :
35+
if test -n "${NO_COLOR-}"; then printf 1>&2 '\n' || :; else printf 1>&2 '\n\033[0m\r \r' || :; fi
3736
fi
38-
unset no_pause || :
37+
unset no_pause
3938
return "${1:-0}"
4039
}
4140

0 commit comments

Comments
 (0)