style(install): show only helper name in install success line

The root-owned helpers all live in the same fixed dir, so printing the
full /usr/local/lib/libreportal/... path on each success line was long and
repetitive. Use the bare helper name, matching the error branch below.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
librelad 2026-05-25 13:53:57 +01:00
parent 5aa51ff3b0
commit 742c3b2f10

View File

@ -823,7 +823,7 @@ initRootHelpers()
sed "s/__MANAGER__/${sudo_user_name}/g" "$helper_src" > "$helper_tmp"
if bash -n "$helper_tmp" 2>/dev/null; then
sudo install -m 0755 -o root -g root "$helper_tmp" "$helper_dst"
isSuccessful "Installed root-owned helper ($helper_dst)."
isSuccessful "Installed root-owned helper ($helper)."
else
isError "Refusing to install a malformed root helper ($helper)."
fi