From 9ee87d57670ef0bdf360bdb99e71ef278d770755 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 17 Apr 2025 14:50:20 -0400 Subject: Fix for local-tomo to use vars if defined --- local-tomo | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/local-tomo b/local-tomo index 241b0eff..c8686ce9 100755 --- a/local-tomo +++ b/local-tomo @@ -5,8 +5,8 @@ if [ ! -e "$here/build/bin/tomo" ]; then exit 1; fi -PATH="$here/build/bin:$PATH" \ -LD_LIBRARY_PATH="$here/build/lib" \ -LIBRARY_PATH="$here/build/lib" \ -C_INCLUDE_PATH="$here/build/include" \ +PATH="$here/build/bin${PATH:+:$PATH}" \ +LD_LIBRARY_PATH="$here/build/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" \ +LIBRARY_PATH="$here/build/lib${LIBRARY_PATH:+:$LIBRARY_PATH}" \ +C_INCLUDE_PATH="$here/build/include${C_INCLUDE_PATH:+:$C_INCLUDE_PATH}" \ tomo "$@" -- cgit v1.2.3