Skip to content

Commit 6b4843c

Browse files
committed
use env var, reorg
1 parent 7b35184 commit 6b4843c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/upload_templates.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,16 @@
33
# if running locally set SYNAPSE_TOKEN_DPE in your environment
44

55
set -e
6-
7-
SYNAPSE_UPLOAD_FOLDER_ID=syn64416621
8-
9-
echo Uploading manifests to "$SYNAPSE_UPLOAD_FOLDER_ID"
10-
116
shopt -s extglob
127

8+
echo Uploading manifests to "${SYNAPSE_UPLOAD_FOLDER_ID}"
9+
1310
MANIFESTS=("$PWD"/*.@(xlsx|xls))
1411

1512
for MANIFEST in ${MANIFESTS[@]};
1613
do
1714
echo "Uploading $MANIFEST"
18-
synapse store --parentId "$SYNAPSE_UPLOAD_FOLDER_ID" --noForceVersion "$MANIFEST"
15+
synapse store --parentId "${SYNAPSE_UPLOAD_FOLDER_ID}" --noForceVersion "$MANIFEST"
1916
done
2017

2118
echo "✓ Done!"

0 commit comments

Comments
 (0)