Commit b937098c authored by Hetrick, John's avatar Hetrick, John
Browse files

Merge branch 'abs_path' into 'main'

Check that the path to an environment is absolute

See merge request !122
parents 103c38fd 51cac9e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
Name:           nsd-app-wrap
Version:        2.18
Version:        2.19
Release:        1%{?dist}
Summary:        Wrapper scripts to launch python applications installed via anaconda
Vendor:         Peter F. Peterson
+3 −1
Original line number Diff line number Diff line
@@ -19,9 +19,11 @@ _get_pixi_manifest_path() {
  # pixi environment
  PIXI_ENV="${1}"

  if [ -d "${PIXI_ENV}" ]; then
  if [[ (-d "${PIXI_ENV}") && ("${PIXI_ENV}" = "$(realpath "${PIXI_ENV}")"*) ]]; then
      # it is a directory and is an absolute path
      echo "${PIXI_ENV}"
  else
      # return the simple case input
      echo "${PIXI_PREFIX%/}/${PIXI_ENV}"
  fi
}