From a361c5bb9e782154c3341158e1a6275e5012d70f Mon Sep 17 00:00:00 2001 From: librelad Date: Sun, 24 May 2026 12:59:41 +0100 Subject: [PATCH] fix(rootless): show a message when .bashrc is already configured MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 'Update the .bashrc file' step printed its header but, when the rootless block was already present, the if-guard skipped the whole body with no output — looked like nothing happened. Add an else that notes it's already configured. Co-Authored-By: Claude Opus 4.7 Signed-off-by: librelad --- scripts/docker/install/rootless/rootless_docker.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/docker/install/rootless/rootless_docker.sh b/scripts/docker/install/rootless/rootless_docker.sh index b50c019..48c4a32 100755 --- a/scripts/docker/install/rootless/rootless_docker.sh +++ b/scripts/docker/install/rootless/rootless_docker.sh @@ -88,6 +88,8 @@ installDockerRootless() checkSuccess "Adding rootless header to .bashrc" isSuccessful "Added $CFG_DOCKER_INSTALL_USER to bashrc file" + else + isNotice "Rootless .bashrc already configured for $CFG_DOCKER_INSTALL_USER — skipping" fi ((menu_number++))