Changeset 25909


Ignore:
Timestamp:
12/21/20 10:55:10 (4 years ago)
Author:
jdquinn
Message:

BUG: Needed output directory in call to unzip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/scripts/DownloadExamplesDatasets.sh

    r25906 r25909  
    2020        DIRECTORY_PREFIX=$1
    2121
    22         if [ ! -d ${DIRECTORY_PREFIX} ]; then
     22        if [ ! -d "${DIRECTORY_PREFIX}" ]; then
    2323                echo "Error: output directory ${DIRECTORY_PREFIX} does not exist"
    2424                exit 1
     
    3535
    3636# Get datasets
    37 wget --no-clobber --directory-prefix="${DIRECTORY_PREFIX}" ${dataset_urls}
     37wget --no-clobber --directory-prefix="${DIRECTORY_PREFIX}" "${dataset_urls}"
    3838
    3939# Expand zip files
    40 unzip -n "${DIRECTORY_PREFIX}/*.zip"
     40unzip -n -d "${DIRECTORY_PREFIX}" "${DIRECTORY_PREFIX}/*.zip"
Note: See TracChangeset for help on using the changeset viewer.