# HG changeset patch # User davidvanzessen # Date 1435227144 14400 # Node ID e160483ee900131146f286fe623dfb58811bc7d6 # Parent 82016fd934c8df8c5b9456a4e1b05c01b7b52d8e Uploaded diff -r 82016fd934c8 -r e160483ee900 wrapper.sh --- a/wrapper.sh Thu Jun 25 06:12:17 2015 -0400 +++ b/wrapper.sh Thu Jun 25 06:12:24 2015 -0400 @@ -39,11 +39,20 @@ do f=$(file $current) zipType="Zip archive" - if [[ "$f" == *"$zipType"* ]] + if [[ "$f" == *"$zipType"* ]] || [[ "$f" == *"XZ compressed data"* ]] then id=${IDs[$count]} echo "id=$id" - unzip $current -d $PWD/$id/ >> $PWD/unziplog.log + if [[ "$f" == *"Zip archive"* ]] ; then + echo "Zip archive" + echo "unzip $input -d $PWD/files/" + unzip $current -d "$PWD/$id/" + elif [[ "$f" == *"XZ compressed data"* ]] ; then + echo "ZX archive" + echo "tar -xJf $input -C $PWD/files/" + mkdir -p "$PWD/$id/files" + tar -xJf $current -C "$PWD/$id/files/" + fi summaryfile="$PWD/summary_${id}.txt" gappedfile="$PWD/gappednt_${id}.txt" filtered="$PWD/filtered_${id}.txt"