public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] isar-init-build-env: Always set ISARROOT
@ 2019-09-27 21:38 vijaikumar.kanagarajan
  2019-09-27 21:43 ` [PATCH v2] " vijaikumar.kanagarajan
  0 siblings, 1 reply; 9+ messages in thread
From: vijaikumar.kanagarajan @ 2019-09-27 21:38 UTC (permalink / raw)
  To: isar-users, henning.schild, claudius.heine.ext; +Cc: jan.kiszka, Vijai Kumar K

From: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>

When switching between two ISAR workspaces in the same shell
session, the ISARROOT setting of the previous workspace would be
picked up for the new workspace resulting in an incorrect
configuration.

Always set ISARROOT irrespective of whether it is empty or not.

Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
---
 isar-init-build-env | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/isar-init-build-env b/isar-init-build-env
index b08bb59..9c308e4 100755
--- a/isar-init-build-env
+++ b/isar-init-build-env
@@ -42,10 +42,8 @@ if [ -z "$ZSH_NAME" ] && [ "$0" = "$THIS_SCRIPT" ]; then
     exit 1
 fi
 
-if [ -z "$ISARROOT" ]; then
-    ISARROOT=$(dirname "$THIS_SCRIPT")
-    ISARROOT=$(readlink -f "$ISARROOT")
-fi
+ISARROOT=$(dirname "$THIS_SCRIPT")
+ISARROOT=$(readlink -f "$ISARROOT")
 unset THIS_SCRIPT
 
 ISARROOT=$(readlink -f "$ISARROOT")
-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-12-24  5:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-27 21:38 [PATCH] isar-init-build-env: Always set ISARROOT vijaikumar.kanagarajan
2019-09-27 21:43 ` [PATCH v2] " vijaikumar.kanagarajan
2019-09-30  6:06   ` Jan Kiszka
2019-09-30  6:46     ` Vijai Kumar K
2019-09-30  7:01       ` Jan Kiszka
2019-09-30  7:49         ` Vijai Kumar K
2019-12-11 10:14         ` vijai kumar
2019-12-17 12:24           ` Baurzhan Ismagulov
2019-12-24  5:21             ` vijai kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox