Skip to content
Snippets Groups Projects
Commit ae0718a0 authored by Mark Olesen's avatar Mark Olesen
Browse files

BUG: avoid absolute path for 'lsof'

- has different locations on different systems
  (eg, /usr/bin/lsof or /sbin/lsof)
parent af49eaf6
Branches
Tags
No related merge requests found
......@@ -42,7 +42,7 @@ setenv WM_PROJECT_VERSION plus
# - If this does not produce the desired result, please set one of the fallback
# values to an appropriate path.
#
setenv FOAM_INST_DIR `/usr/bin/lsof +p $$ |& \
setenv FOAM_INST_DIR `lsof +p $$ |& \
sed -n -e 's@[^/]*@@' -e 's@/'$WM_PROJECT'[^/]*/etc/cshrc@@p'`
# setenv FOAM_INST_DIR $HOME/$WM_PROJECT
# setenv FOAM_INST_DIR /opt/$WM_PROJECT
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment