Skip to content

Commit

Permalink
fix image copying in import script
Browse files Browse the repository at this point in the history
  • Loading branch information
anolpe committed Jan 25, 2024
1 parent 0721a9e commit 8357ed3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/import_seeding_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ if [ "$UPSERT_FLAG" = true ] ; then
else
UPSERT_FLAG=""
fi
# Copy images from images to ../uploads folder
# TODO: change this implementation when using cloud storage plugin
mkdir -p apps/cms/uploads
find data/gen/images -type f -exec cp {} apps/cms/uploads/ \;

# if argument is passed, only import that collection
if [ -n "$1" ]; then
if [ "$ALL_FLAG" = true ] ; then
Expand All @@ -66,8 +71,3 @@ if [ "$ALL_FLAG" = true ] ; then
done
exit 0
fi

# Copy images from images to ../uploads folder
# TODO: change this implementation when using cloud storage plugin
mkdir -p apps/cms/uploads
find data/gen/images -type f -exec cp {} apps/cms/uploads/ \;

0 comments on commit 8357ed3

Please sign in to comment.