Skip to content

Commit

Permalink
fix missing negation op in bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
rpodcast committed Apr 2, 2024
1 parent 8ebc0b9 commit b8b9339
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/copy-ectd-bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ECTD_BUNDLE_FILE=r4app.zip

if [ -f "${ECTD_BUNDLE_DIR}/${ECTD_BUNDLE_FILE}" ]; then
echo "Copying ${ECTD_BUNDLE_DIR}/${ECTD_BUNDLE_FILE}"
if [ -f "$DESTINATION_DIR" ]; then
if [ ! -f "$DESTINATION_DIR" ]; then
echo "Create new directory ${DESTINATION_DIR}"
mkdir -p "${DESTINATION_DIR}"
fi
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish-ectd-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ jobs:

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ false }}

- name: Copy ECTD bundle
run: bash ./.github/scripts/copy-ectd-bundle.sh
env:
DESTINATION_DIR: ./submissions-pilot4-webR-to-fda/m5/datasets/rconsortiumpilot4webR/analysis/adam/programs
DESTINATION_DIR: submissions-pilot4-webR-to-fda/m5/datasets/rconsortiumpilot4/analysis/adam/programs

- name: Push ECTD bundle
run: bash ./.github/scripts/push-ectd-bundle.sh

0 comments on commit b8b9339

Please sign in to comment.