From 028ab7c1f9d8b72e285c367a709da76a54363d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Fri, 11 Apr 2025 20:31:43 +0200 Subject: [PATCH] srload: Cleanup when running outside buildtree The original syntax did not work and the initial intention, that root is always required is also false. --- utils/srload | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/utils/srload b/utils/srload index 95c9ced0..5996bf74 100755 --- a/utils/srload +++ b/utils/srload @@ -14,10 +14,8 @@ source "$1" # optional env variable override if [ -n "$SYSREPOCTL_EXECUTABLE" ]; then SYSREPOCTL="$SYSREPOCTL_EXECUTABLE" -elif [ "$(id -u)" -eq 0 ] && [ -n "$USER" ] && [ -n "$(command -v su)" ]; then - SYSREPOCTL=$(command sysrepoctl -l "$USER") else - SYSREPOCTL=$(command sysrepoctl) + SYSREPOCTL=sysrepoctl fi PERMS="660" @@ -91,7 +89,6 @@ enable() fi } - # Skip first 5 lines of header and last 3 lines of footer SCTL_MODULES=$($SYSREPOCTL -l |tail -n +5 |head -n -3)