#!/bin/bash
-# Copyright (C) 2021 CEA/DEN, EDF R&D
+# Copyright (C) 2021-2023 CEA, EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# Sourcing files with parameters works with bash, not with dash. This is why
# we must use bash for this script.
-if "$1" == "--noenvd"
+if [ "$1" == "--noenvd" ]
then
shift
else
. "${HOME}/${APPLI}/envd" "${HOME}/${APPLI}"
fi
-# --- set the OMNIORB_CONFIG file and environment relative to this run of SALOME
-export CUSTOM_NS_IOR=$1
-
#go to the requested working directory if any
if test "x$2" == "xWORKINGDIR"; then
if test "x$3" = "x\$TEMPDIR"; then
# --- execute the command in the SALOME environment
-"${KERNEL_ROOT_DIR}/bin/salome/envSalome.py" /bin/sh -c "$* $CUSTOM_NS_IOR"
+"${KERNEL_ROOT_DIR}/bin/salome/envSalome.py" /bin/sh -c "$* "