Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gpfs-policy
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
gpfs-policy
Commits
668670d7
Commit
668670d7
authored
9 months ago
by
Matthew K Defenderfer
Browse files
Options
Downloads
Patches
Plain Diff
simplify exit on error by setting options at the beginning of the script
parent
70cd4079
No related branches found
No related tags found
1 merge request
!11
Add submit pol wrapper
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/run-mmpol.sh
+2
-8
2 additions, 8 deletions
src/run-mmpol.sh
with
2 additions
and
8 deletions
src/run-mmpol.sh
+
2
−
8
View file @
668670d7
#!/bin/bash
set
-euxo
pipefail
# run an mmapply policy across the cluster via slurm
# gather info to map mmapplypolicy to runtime configuration
...
...
@@ -35,14 +37,6 @@ echo $cmd
# run policy command
$cmd
rcode
=
$?
if
[
$rcode
-ne
0
]
then
echo
error: mmapplypoicy failed: code
$rcode
exit
$rcode
fi
# tag output file with run metadata
outfile
=
`
ls
-t
$tmpglobal
|
head
-1
`
if
[[
"
$outfile
"
!=
""
]]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment