Skip to content

Commit

Permalink
Merge pull request #219 from JeffersonLab/aaust_launch_untar
Browse files Browse the repository at this point in the history
The output files will have the file number "-1", but that should not be a problem.
  • Loading branch information
aaust authored Jan 12, 2024
2 parents 354461f + 4f6f2ee commit 2e81d05
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 2e81d05

Please sign in to comment.