Skip to content
Snippets Groups Projects
Commit a46cd8e7 authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

mkexp: changed 'cdexp' shell tool to honor command line variable assignments

parent 2e576037
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,14 @@ Make Experiments!
Release Changes
---------------
Release 1.0.6
=============
Global
------
* Changed 'cdexp' shell tool to honor command line variable assignments
Release 1.0.5
=============
......
......@@ -28,6 +28,7 @@ cdexp () {
then
dir=$(dirname "$1")
cfg="$1"
shift
elif [[ -f update ]]
then
eval $(python -c '
......@@ -41,6 +42,6 @@ print("dir="+u.get_config_dir()+"\ncfg="+u.get_config_file())
fi
var=${var^^}
var=${var%_DIR}
vardir=$(builtin cd "$dir" && getexp -k "${var}_DIR" "$cfg") &&
vardir=$(builtin cd "$dir" && getexp -k "${var}_DIR" "$cfg" "$@") &&
cd "$vardir"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment