diff --git a/utils/srload b/utils/srload index 95c9ced09..5996bf74a 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)