Skip to content

Commit

Permalink
Changed copy-examples.sh so that you can run it from a different dire…
Browse files Browse the repository at this point in the history
…ctory

and it will still use the dd-dataverse-ingest project directory as the
reference point.
  • Loading branch information
janvanmansum committed Dec 7, 2024
1 parent 8560b6b commit 481a848
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions copy-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
# limitations under the License.
#


SCRIPT_DIR=$(cd $(dirname "$0") && pwd)
BATCH_NAME=${1:-"test-deposits"}

rm -rf data/import/inbox/$BATCH_NAME
rm -fr data/import/outbox/$BATCH_NAME
cp -r src/test/resources/test-deposits data/import/inbox/$BATCH_NAME

rm -rf "$SCRIPT_DIR/data/import/inbox/$BATCH_NAME"
rm -rf "$SCRIPT_DIR/data/import/outbox/$BATCH_NAME"
cp -r "$SCRIPT_DIR/src/test/resources/test-deposits" "$SCRIPT_DIR/data/import/inbox/$BATCH_NAME"

0 comments on commit 481a848

Please sign in to comment.