From bf90f694555b6aedcecf7735784d225cefb294b4 Mon Sep 17 00:00:00 2001 From: teldra Date: Wed, 12 May 2021 17:06:42 +0200 Subject: [PATCH] fixes --- files/profile/append-path.sh | 6 +++++- step1/50-system | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/files/profile/append-path.sh b/files/profile/append-path.sh index 355fba4..7504b27 100644 --- a/files/profile/append-path.sh +++ b/files/profile/append-path.sh @@ -7,6 +7,10 @@ appendpath () { esac } -appendpath "${HOME}/.local/bin" +if [ $(id -u) -eq 0 ]; then + appendpath "/root/.local/bin" +else + appendpath "/home/$(id -un)/.local/bin" +fi export PATH diff --git a/step1/50-system b/step1/50-system index 527c08c..35f93ee 100644 --- a/step1/50-system +++ b/step1/50-system @@ -50,4 +50,3 @@ if [[ ! "${cfg[de]}" == "none" ]]; then fi servicesenable "$networkmanager" -