Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Pmodules
buildblocks
Commits
f265261a
Commit
f265261a
authored
Apr 15, 2015
by
stadler_h
Browse files
- Filter out .release files
- Exit with correct return value in non library mode
parent
23c5586a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
scripts/Bootstrap/Pmodules/dialog.bash
scripts/Bootstrap/Pmodules/dialog.bash
+5
-1
No files found.
scripts/Bootstrap/Pmodules/dialog.bash
View file @
f265261a
...
...
@@ -173,11 +173,13 @@ function preselect() { # "$1": prefix for preselected modules
[[ -z "
$1
" ]] && return
local -a mpc # module path components
local -i i
local uid
local uid
n
pushd "
$1
/
$PSI_MODULES_ROOT
" > /dev/null || exit 1;
trap "
popd
" EXIT
for m in
$(
find
.
-follow
-type
f
)
; do
n=
${
m
##*/
}
[[ "
${
n
:0:1
}
" == "
.
" ]] && continue
uid=""
mpc=(
${
m
//\//
}
)
for ((i=2; i<
${#
mpc
[@]
}
-2; i+=2)); do
...
...
@@ -343,7 +345,9 @@ function module_picker() {
[[
${
DIALOG_LIB
:+
"is_lib"
}
== "
is_lib
" ]] || {
if [[ -x
${
PMODULES_HOME
}
/bin/modulecmd ]]; then
module_picker "
${
1
:-
$PSI_PREFIX
}
" "
${
2
:-
/afs/psi.ch/sys/psi.x86_64_slp6
}
"
exit
$?
else
echo "
ERROR
:
module environment configuration
:
${
PMODULES_HOME
}
/bin/modulecmd is not an executable!
"
exit 1
fi
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment