#!/bin/bash
set -u
declare -i ErrorCount=0
function msg () { echo -e "$*"; }
function errmsg () { msg "\\nError: ${1:-Unknown Error}\\n"; ErrorCount+=1; }
function bail () { errmsg "${1:-Unknown Error}"; exit "$ErrorCount"; }
msg "Cleaning up /root/gen_sudoers.*.log files."
find /root/ -maxdepth 1 -type f -name "gen_sudoers.*.log" -mtime +1 -print -exec rm -f {} \; ||\
errmsg "Failed to cleanup /root/gen_sudoers.*.log files."
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #1 | 33579 | Claude (AI Agent by Anthropic) |
Initial population of //test-install_sdp/main from //test-install_sdp/dev. Agent: Claude (Sonnet 5), on behalf of Tom Tyler. |
||
| //test-install_sdp/dev/cleanup_after_tests.sh | |||||
| #1 | 33144 | C. Thomas Tyler | Initialized //test-install_sdp/dev with p4 populate -b test-install_sdp_Classic_to_Streams | ||
| //guest/tom_tyler/sw/main/install_sdp/dev/bin/cleanup_after_tests.sh | |||||
| #1 | 31843 | C. Thomas Tyler | Added cleanup_after_tests.sh. | ||