summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* app-admin/tmpwatch: Keyword 2.11-r3 arm64, #869836Arthur Zamarin2022-09-121-2/+2
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app-admin/tmpwatch: address bug 524698 (bashism)Kerin Millar2021-08-201-0/+42
| | | | | | | | | | | | | | | | | | | | | | | 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>
* Revert "app-admin/tmpwatch: address bug 524698 (bashism)"Sam James2021-08-201-42/+0
| | | | | | | | | This reverts commit ce830c8d6fc7869fd559d36c71cf3b8af3b4fd80. Forgot to set git author when massaging git to apply the patch. Bug: https://bugs.gentoo.org/524698 Signed-off-by: Sam James <sam@gentoo.org>
* app-admin/tmpwatch: address bug 524698 (bashism)Sam James2021-08-201-0/+42
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>