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:
parent
5aa51ff3b0
commit
742c3b2f10
2
init.sh
2
init.sh
@ -823,7 +823,7 @@ initRootHelpers()
|
|||||||
sed "s/__MANAGER__/${sudo_user_name}/g" "$helper_src" > "$helper_tmp"
|
sed "s/__MANAGER__/${sudo_user_name}/g" "$helper_src" > "$helper_tmp"
|
||||||
if bash -n "$helper_tmp" 2>/dev/null; then
|
if bash -n "$helper_tmp" 2>/dev/null; then
|
||||||
sudo install -m 0755 -o root -g root "$helper_tmp" "$helper_dst"
|
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
|
else
|
||||||
isError "Refusing to install a malformed root helper ($helper)."
|
isError "Refusing to install a malformed root helper ($helper)."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user