Commit 3bdc3253 authored by Chris Shallue's avatar Chris Shallue Committed by GitHub
Browse files

Merge pull request #482 from cshallue/unzip

Use tar on OSX to unzip the MSCOCO data file.
parents 7e9b9830 608e7901
......@@ -29,6 +29,12 @@ if [ -z "$1" ]; then
exit
fi
if [ "$(uname)" == "Darwin" ]; then
UNZIP="tar -xf"
else
UNZIP="unzip -nq"
fi
# Create the output directories.
OUTPUT_DIR="${1%/}"
SCRATCH_DIR="${OUTPUT_DIR}/raw-data"
......@@ -49,7 +55,7 @@ function download_and_unzip() {
echo "Skipping download of ${FILENAME}"
fi
echo "Unzipping ${FILENAME}"
unzip -nq ${FILENAME}
${UNZIP} ${FILENAME}
}
cd ${SCRATCH_DIR}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment