From a9886bf2f8a35369a2c42070c5f83504dfab2bc5 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Fri, 27 Jun 2025 10:56:03 +0200 Subject: vault backup: 2025-06-27 10:56:02 --- Setting traps.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Setting traps.md') diff --git a/Setting traps.md b/Setting traps.md index cd36e80..b3bc8f3 100644 --- a/Setting traps.md +++ b/Setting traps.md @@ -1,7 +1,8 @@ --- -tags: - - bash +tags: [] --- +[[Bash]] + With traps you can configure a function that is run upon a specific signal or when the script fails or exits normally. `trap fn ERR` > when an error occurrs -- cgit v1.2.3