Skip to content

Commit

Permalink
Update install_data.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshah committed Jun 18, 2024
1 parent fd86faa commit 288e93a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions install_data.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
#!/usr/bin/env bash


# Test data is hosted on Google Drive at:
# https://drive.google.com/u/0/uc?id=1i1GA4AZhuw6Si8RmPFPJxmejIUt3ZZ1D

fileid=1i1GA4AZhuw6Si8RmPFPJxmejIUt3ZZ1D

filename=test_nucleo_qc.tar.gz
foldername=test_nucleo_qc
foldername=test_data

# Skip if already have test data
[[ -f $filename ]] && exit 0
[[ -d $foldername ]] && exit 0

#curl -c ./cookie -s -k -L "https://drive.google.com/uc?export=download&id=$fileid" > /dev/null
#curl -k -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}

cd tests/inputs || exit
curl -L "https://drive.usercontent.google.com/download?id=${fileid}&confirm=xxx" -o ${filename}

# Suppress linux warnings for MacOS tar.gz files
Expand All @@ -25,4 +24,4 @@ elif [[ "$OSTYPE" == "darwin"* ]]; then
tar -xzvf $filename
fi

rm $filename
rm $filename

0 comments on commit 288e93a

Please sign in to comment.