Skip to content

Commit

Permalink
fix if space
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao committed Aug 14, 2024
1 parent 398062f commit 23f4904
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sidecar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ function populate() {
# make sure folder can be written to by notebook
chown -R 1000:100 $FOLDER

if [["$base_dir" == "manifests"]];then
if [[ "$base_dir" == "manifests" ]]; then
MANIFEST_FILE=$(curl -s -H "Authorization: Bearer ${ACCESS_TOKEN}" "https://$GEN3_ENDPOINT/manifests/file/$FILENAME")
echo "${MANIFEST_FILE}" > $FOLDER/manifest.json
log "Creating notebook for $FILENAME"
cp ./template_manifest.json $FOLDER/data.ipynb
populate_notebook "$MANIFEST_FILE" "$FOLDER"
elif [["$base_dir" == "metadata"]];then
elif [[ "$base_dir" == "metadata" ]]; then
METADATA_FILE=$(curl -s -H "Authorization: Bearer ${ACCESS_TOKEN}" "https://$GEN3_ENDPOINT/manifests/metadata/$FILENAME")
echo "${METADATA_FILE}" > $FOLDER/metadata.json
fi
Expand Down

0 comments on commit 23f4904

Please sign in to comment.