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
No known key found for this signature in database
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
}
"$@"