From 19f37e343bbe2ec43698384e08f60e98aabe4627 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Sat, 31 Dec 2022 15:22:16 -0500 Subject: [PATCH] app_containers: Rename the cleanup routine to cleanup() exit is actually a keyword in bash --- app_containers/.local/bin/run_app_container | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app_containers/.local/bin/run_app_container b/app_containers/.local/bin/run_app_container index 44d5894..5aabae3 100755 --- a/app_containers/.local/bin/run_app_container +++ b/app_containers/.local/bin/run_app_container @@ -5,7 +5,7 @@ die() { exit 1 } -exit() { +cleanup() { rm -rf "$container_xdg_runtime" # Remove the temporary facl-based permissions setfacl -x u:$((user_on_host)) $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY @@ -31,7 +31,7 @@ fi # Create a XDG_RUNTIME_DIR for guest on host container_xdg_runtime="$(mktemp -d -p /var/tmp)" -trap exit EXIT +trap cleanup EXIT # Link the current wayland session to the container's xdg runtime # Note that the session itself must be bind-mounted first