--- Makefile | 4 ++-- sbin/set-env.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile index 37387809..907dba9e 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ ifeq ($(TARGET_DIR_BIN), ) TARGET_DIR_BIN := /usr/local/bin endif
-ifneq ($(shell whoami), "root") +ifneq ($(shell whoami), root) TARGET_DIR_BIN := $${HOME}/bin endif
@@ -14,8 +14,8 @@ subsystem: install: mkdir -p $(TARGET_DIR_BIN) ln -sf $(shell pwd)/bin/lkp $(TARGET_DIR_BIN)/lkp - bash sbin/install-dependencies.sh bash sbin/set-env.sh + sudo bash sbin/install-dependencies.sh
.PHONY: doc doc: diff --git a/sbin/set-env.sh b/sbin/set-env.sh index b9046519..a8b161fa 100644 --- a/sbin/set-env.sh +++ b/sbin/set-env.sh @@ -5,7 +5,7 @@ write_shellrc() { echo "export LKP_SRC=$PWD" >> $(shell_profile) - echo "export PATH=$PATH:$PWD/sbin:$PWD/bin" >> $(shell_profile) + echo "export PATH=$PATH:$LKP_SRC/sbin:$LKP_SRC/bin" >> $(shell_profile) }
write_host()