Sam James ce830c8d6f 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>
2021-08-20 03:18:09 +01:00
2021-08-03 12:24:28 -05:00
2021-08-19 20:20:24 +02:00
2021-08-19 04:27:47 +01:00
2021-08-19 18:38:14 +02:00
2021-08-13 10:07:14 +08:00
2021-08-16 07:48:10 +02:00
2021-08-15 17:41:08 -04:00
2021-08-18 23:27:37 -07:00
2021-08-11 03:05:18 +01:00
2021-08-19 20:40:16 +02:00
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.3%
Emacs Lisp 0.2%
C 0.1%