fix(rootless): show a message when .bashrc is already configured
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 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
parent
016f11882e
commit
a361c5bb9e
@ -88,6 +88,8 @@ installDockerRootless()
|
|||||||
checkSuccess "Adding rootless header to .bashrc"
|
checkSuccess "Adding rootless header to .bashrc"
|
||||||
|
|
||||||
isSuccessful "Added $CFG_DOCKER_INSTALL_USER to bashrc file"
|
isSuccessful "Added $CFG_DOCKER_INSTALL_USER to bashrc file"
|
||||||
|
else
|
||||||
|
isNotice "Rootless .bashrc already configured for $CFG_DOCKER_INSTALL_USER — skipping"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
((menu_number++))
|
((menu_number++))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user