From ad0bb6385f9a4e51dd973e496512ba1fb4b57ad0 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sun, 1 May 2022 18:10:29 +0300
Subject: [PATCH] wb: Interactive rcfiles update.

Updating rcfiles triggers the Git hook which in turn runs Make to update
configuration files which runs Passhole. If not interactive (and not
TTY), Passhole falls back to using Zenity which I don't include in the
Workbench image (it pulls in a lot of X and Gnome dependencies and I
feel like it's the wrong tool for this situation). Instead, I would
prefer to have Passhole ask for password as usual, so interactive (and
TTY) it is.
---
 Documents/bin/wb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documents/bin/wb b/Documents/bin/wb
index 2cfb84b..e38220b 100755
--- a/Documents/bin/wb
+++ b/Documents/bin/wb
@@ -98,7 +98,7 @@ update() {
         podman image prune --filter 'label=com.github.containers.toolbox=true' --force >/dev/null
         toolbox create --image "$IMAGE"
     fi
-    toolbox run --container "$CONTAINER" -- git -C "$HOME" Pull
+    podman exec -it -w "$HOME" -u "$(whoami)" "$CONTAINER" git pull
 }
 
 dry_update() {
-- 
GitLab