From ec4d066758f50ad78302fa202e6c6f5280f2c9e1 Mon Sep 17 00:00:00 2001
Message-ID: <ec4d066758f50ad78302fa202e6c6f5280f2c9e1.1766509916.git.h.goebel@crazy-compilers.com>
In-Reply-To: <59533f037e57da15fb262416fa69930b07e9f6f8.1766509916.git.h.goebel@crazy-compilers.com>
References: <59533f037e57da15fb262416fa69930b07e9f6f8.1766509916.git.h.goebel@crazy-compilers.com>
From: Hartmut Goebel <h.goebel@crazy-compilers.com>
Date: Wed, 23 Apr 2025 21:03:42 +0200
Subject: [PATCH 2/3] sandcastle-enter: Allow running other program than shell.

---
 sandcastle-enter | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/sandcastle-enter b/sandcastle-enter
index 7b165f6..b84b433 100755
--- a/sandcastle-enter
+++ b/sandcastle-enter
@@ -1,3 +1,9 @@
 #!/usr/bin/env bash
 
-exec podman exec -e=TERM -it taler-sandcastle /bin/bash
+set -e
+
+if [[ $# == 0 ]] ; then
+    exec podman exec -e=TERM -it taler-sandcastle /bin/bash
+else
+    exec podman exec -e=TERM -it taler-sandcastle "$@"
+fi
-- 
2.41.3

