aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-06-05 22:40:35 +0200
committerStefano Brivio <sbrivio@redhat.com>2023-06-05 22:40:35 +0200
commit9c371d77e843163261d28e374f4ea7dab2e3f64d (patch)
tree00e8708c548f78b723e774949affc43a9f7865a6
parent44dbd4b6230ce3fe65eface4773605a8c465e93b (diff)
downloadseitan-9c371d77e843163261d28e374f4ea7dab2e3f64d.tar
seitan-9c371d77e843163261d28e374f4ea7dab2e3f64d.tar.gz
seitan-9c371d77e843163261d28e374f4ea7dab2e3f64d.tar.bz2
seitan-9c371d77e843163261d28e374f4ea7dab2e3f64d.tar.lz
seitan-9c371d77e843163261d28e374f4ea7dab2e3f64d.tar.xz
seitan-9c371d77e843163261d28e374f4ea7dab2e3f64d.tar.zst
seitan-9c371d77e843163261d28e374f4ea7dab2e3f64d.zip
seitan-run: Drop -x, refine cleanup
If DIR already exists, just remove our entries. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rwxr-xr-xseitan-run5
1 files changed, 3 insertions, 2 deletions
diff --git a/seitan-run b/seitan-run
index d22eee2..88cdcf0 100755
--- a/seitan-run
+++ b/seitan-run
@@ -1,4 +1,4 @@
-#!/bin/sh -ex
+#!/bin/sh -e
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
@@ -16,7 +16,8 @@ usage() {
}
cleanup() {
- rm -rf "${DIR}"
+ rm -rf "${DIR}/gluten" "${DIR}/bpf" "${DIR}/eater.pid"
+ rmdir "${DIR}" 2>/dev/null || :
}
trap cleanup EXIT INT