Skip to content

Commit

Permalink
if the input file is a tar ball, extract locally
Browse files Browse the repository at this point in the history
  • Loading branch information
aaust committed Nov 21, 2023
1 parent 5cfc464 commit 4f6f2ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions launch_scripts/launch/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ Setup_Script()
echo "JANA_CALIB_URL: " $JANA_CALIB_URL
fi

if [[ $INPUTFILE == *"tar" ]] ; then
# extract and flatten directories
tar xvf $INPUTFILE --transform='s/.*\///'
rm $INPUTFILE
# update input files
export INPUTFILE=${INPUTFILE/.hddm.tar/_*.hddm}
echo INPUTFILE = $INPUTFILE
fi

# LIST WORKING DIRECTORY
echo "LOCAL FILES"
ls -l
Expand Down

0 comments on commit 4f6f2ee

Please sign in to comment.