Skip to content

Commit

Permalink
pass dir
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed Jul 16, 2022
1 parent 6237c2e commit 699ac07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ else
echo 'Skipping blog sourcing...'
fi

if [ "$2" = 'dir' ] && [ $# -eq 3 ]; then
echo "Sourcing blog from directory $3"
rm -rf blog/
cp -a $3 blog/
fi

if [ ! -d "blog" ]; then
echo 'No blog/ directory'
exit 1
Expand Down

0 comments on commit 699ac07

Please sign in to comment.