avoid confusing message about non error during teardown

This commit is contained in:
Earl Warren 2023-12-20 22:24:23 +01:00
parent b51343081a
commit 65957effd9
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 0579CB2928A78A00

View file

@ -74,7 +74,9 @@ function setup() {
function teardown() {
stop_daemon forgejo-runner $DIR
rm -fr $(cat $DIR/forgejo-runner-home)
if test -f $DIR/forgejo-runner-home ; then
rm -fr $(cat $DIR/forgejo-runner-home)
fi
}
"$@"