[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 1/4] Allow the use of helpers without installing



From: Otavio Salvador <otavio@ossystems.com.br>

While doing development or in some specific kind of use, can be handy
to be able to use 'live-package' without installing it. This patch
makes the needed helpers available on the PATH iif
LIVE_PACKAGE_IN_PATH variable is set.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

 src/main.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/main.sh b/src/main.sh
index 5f11402..6a6eb8b 100755
--- a/src/main.sh
+++ b/src/main.sh
@@ -360,6 +360,10 @@ Main ()
 		esac
 	done
 
+	if [ ! -z ${LIVE_PACKAGE_IN_PATH} ]; then
+		PATH=helpers/:$PATH
+	fi
+
 	# Initialising
 	lh_testroot
 	Configuration


Reply to: