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" -