Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cris_l1b
user
Commits
a043451b
Commit
a043451b
authored
Mar 23, 2022
by
R.K.Garcia
Browse files
Fix output spec to expect a directory name
parent
a2213ba8
Pipeline
#36571
passed with stage
in 7 minutes and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
RU/cris-l1b-ru
View file @
a043451b
#!/bin/bash -e
usagexit
()
{
echo
>
&2
"usage: cris-l1b-ru {SNPP,J1} L1B-FILENAME RU-
FILENAME
"
echo
>
&2
"docker usage: docker run --rm -v
\$
PWD:
\$
PWD -w
\$
PWD gitlab.ssec.wisc.edu:5555/cris_l1b/user cris-l1b-ru {SNPP,J1} L1B-FILENAME RU-
FILENAME
"
echo
>
&2
"usage: cris-l1b-ru {SNPP,J1} L1B-FILENAME RU-
OUTPUT-DIR
"
echo
>
&2
"docker usage: docker run --rm -v
\$
PWD:
\$
PWD -w
\$
PWD gitlab.ssec.wisc.edu:5555/cris_l1b/user cris-l1b-ru {SNPP,J1} L1B-FILENAME RU-
OUTPUT-DIR
"
exit
1
}
...
...
@@ -10,7 +10,6 @@ abspath() {
python
-c
'import sys,os; print("\n".join([os.path.abspath(x) for x in sys.argv[1:]]))'
"
$@
"
}
test
-d
"
$RU_HOME
"
||
echo
>
&2
"
${
Oops
:?RU_HOME
is not set
}
"
test
-d
"
$MCRROOT
"
||
echo
>
&2
"
${
Oops
:?MCRROOT
must point to Matlab runtime
}
"
SAT
=
"
$1
"
...
...
@@ -20,7 +19,7 @@ OUTPUT_FILE="$3"
test
-n
"
$SAT
"
||
usagexit
test
-f
"
$INPUT_FILE
"
||
echo
>
&2
"
${
Oops
:?
${
INPUT_FILE
}
is not a file
}
"
test
-
n
"
$OUTPUT_FILE
"
||
echo
>
&2
"
${
Oops
:?please
specify an output
filename
}
"
test
-
d
"
$OUTPUT_FILE
"
||
echo
>
&2
"
${
Oops
:?please
specify an output
directory
}
"
export
MATLABPATH
=
"
$RU_HOME
"
# always limit the blast radius of LD_LIBRARY_PATH to as small a space as possible
...
...
Write
Preview
Supports
Markdown
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