diff options
author | 2021-08-20 03:16:53 +0100 | |
---|---|---|
committer | 2021-08-20 03:26:17 +0100 | |
commit | b32a477eba2470c5137d5c2b2da0d28d45c4bdc0 (patch) | |
tree | 0bf27f1f31a53be12f852bae4e0dbed90a9f0909 /acct-group/sqlgrey | |
parent | Revert "app-admin/tmpwatch: address bug 524698 (bashism)" (diff) | |
download | gentoo-b32a477eba2470c5137d5c2b2da0d28d45c4bdc0.tar.gz gentoo-b32a477eba2470c5137d5c2b2da0d28d45c4bdc0.tar.bz2 gentoo-b32a477eba2470c5137d5c2b2da0d28d45c4bdc0.zip |
app-admin/tmpwatch: address bug 524698 (bashism)
Remove the use of the [[ keyword in favour of the POSIX test command
(SC3010).
Don't hard-code pathnames to external programs and define silly
variables such as TMPWATCH. Instead, define a sane PATH at the beginning
of the script.
Don't force the user to reason with whether certain variables need to be
set or not. Instead, call out to portageq in the samples. Further, check
the exit status of portageq, rather than blindly assume that it always
succeeds. As a result, there are no more hard-coded paths, other than
/tmp.
Use pgrep in a less sloppy way.
Query PORT_LOGDIR if the query for PORTAGE_LOGDIR fails.
Closes: https://bugs.gentoo.org/524698
Signed-off-by: Kerin Millar <kfm@plushkava.net>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'acct-group/sqlgrey')
0 files changed, 0 insertions, 0 deletions