Skip to content
Permalink
Browse files

Script fix on exiting content

  • Loading branch information
dirkkelly committed Oct 11, 2019
1 parent 33ac745 commit ef85d9d647036fc38ec07c646f86803181def8d6
Showing with 6 additions and 4 deletions.
  1. +1 −1 scripts/_migrate/01_creator_pages.sh
  2. +5 −3 scripts/_migrate/02_video_pages.sh
@@ -10,7 +10,7 @@ ls data/channels/ | while read data; do
mkdir $folder;
hugo new --kind channel-bundle "channels/${slug}";
else
echo "${folder} exists;"
echo "${folder} exists";
fi

mv static/img/channels/$slug.jpg content/channels/$slug/logo.jpg;
@@ -7,9 +7,11 @@ ls data/videos/ | while read channel; do
path="channels/$channel/videos/$id.md";
page="content/$path";

rm -rf $page;

hugo new --kind video $path;
if [ ! -f "$page" ]; then
hugo new --kind video $path;
else
echo "${page} exists";
fi

description=$(echo `yq r $data description`);
title=$(echo `yq r $data title`);

0 comments on commit ef85d9d

Please sign in to comment.
You can’t perform that action at this time.