Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
machinejobfeatures
mjf-scripts
Commits
40cda756
Commit
40cda756
authored
Feb 28, 2016
by
Andrew McNab
Browse files
Check if /etc/machinefeatures exists before setting $MACHINEFEATURES
parent
1d189db8
Changes
2
Hide whitespace changes
Inline
Side-by-side
mjf.csh
View file @
40cda756
setenv MACHINEFEATURES /etc/machinefeatures
if ( -d /etc/machinefeatures ) then
setenv MACHINEFEATURES /etc/machinefeatures
endif
if ( "$PBS_JOBID" != "" ) then
setenv JOBFEATURES $HOME/jobfeatures-$PBS_JOBID
endif
mjf.sh
View file @
40cda756
export
MACHINEFEATURES
=
/etc/machinefeatures
if
[
-d
/etc/machinefeatures
]
;
then
export
MACHINEFEATURES
=
/etc/machinefeatures
fi
if
[
"
$PBS_JOBID
"
!=
""
]
;
then
export
JOBFEATURES
=
$HOME
/jobfeatures-
$PBS_JOBID
fi
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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