Skip to content

Commit 338a2c6

Browse files
committed
Adjust create tarball to support compat builds
1 parent 3e38c2e commit 338a2c6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

create-tarball.sh

+7-3
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ function fatal_error() {
3232
}
3333

3434
if [[ $# -lt 2 ]]; then
35-
fatal_error "Usage: $0 <compat|easybuild|banalbuild|config> </scratch/path/to/workdir>"
35+
fatal_error "Usage: $0 <compat|easybuild> </scratch/path/to/workdir>"
3636
fi
3737

3838
content_type=$1
3939
workdir=$2
4040

4141
# Check if the content-type is compat, easybuild, or config
42-
if [ "${content_type}" != "compat" ] && [ "${content_type}" != "easybuild" ] && [ "${content_type}" != "config" ] && [ "${content_type}" != "banalbuild" ]
42+
if [ "${content_type}" != "compat" ] && [ "${content_type}" != "easybuild" ]
4343
then
44-
fatal_error "Content type should be either compat, easybuild, banalbuild or config."
44+
fatal_error "Content type should be either compat or easybuild"
4545
fi
4646

4747
if [[ -z "$CCR_VERSION" ]]; then
@@ -55,6 +55,10 @@ then
5555
fi
5656

5757
overlay_upper_dir="${workdir}/overlay-upper"
58+
if [ ! -d ${overlay_upper_dir} ] && [ -d "${workdir}/cvmfs/soft.ccr.buffalo.edu" ]; then
59+
overlay_upper_dir="${workdir}/cvmfs/soft.ccr.buffalo.edu"
60+
fi
61+
5862
dir_overlay="${overlay_upper_dir}/versions/${CCR_VERSION}/${content_type}"
5963

6064
if [ ! -d ${dir_overlay} ]; then

0 commit comments

Comments
 (0)