Skip to content

Commit 6ad574e

Browse files
author
Louis Abel
committed
add lookahead cleanup
1 parent 431339f commit 6ad574e

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

cron/lookahead-cleanup-10

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
pushd /mnt/koji/compose/10-LookAhead/
4+
5+
SRCS=$(find . -maxdepth 1 -type d -mtime +7 | grep -vE 'SIG-|Rocky-10.[0-9]+-20[2-3][0-9]' | sort)
6+
7+
printf "The following will be deleted\n"
8+
for x in $SRCS ; do echo ${x} ; done
9+
10+
rm -rf ${SRCS}

cron/lookahead-cleanup-9

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
pushd /mnt/koji/compose/9-LookAhead/
4+
5+
SRCS=$(find . -maxdepth 1 -type d -mtime +7 | grep -vE 'SIG-|Rocky-10.[0-9]+-20[2-3][0-9]' | sort)
6+
7+
printf "The following will be deleted\n"
8+
for x in $SRCS ; do echo ${x} ; done
9+
10+
rm -rf ${SRCS}

0 commit comments

Comments
 (0)