on master help sign in
fix typo, make prints clearer
commit553812261bd3bdb5af43bcf66696977eee16e92c authorMorgan Sutherland <morgan@morgansutherland.com> dateThu 14 Mar 2019, 16:05 (8 years ago) parent2fc8ca7
1 file changed+8−8
scripts/build+8−8
scripts/build+8−8
@@ -15,7 +15,7 @@ ship=${2%/}
1515
1616copy_static_site ()
1717{
18− echo -e "Copying source files from $site to $ship"
18+ echo -e "- Copying source files from $site to $ship"
1919 rm -rf $ship/home/web
2020 cp -r $site/static-site $ship/home/web
2121 cp $site/static-site/index.hoon $ship/home/web.hoon
@@ -27,13 +27,13 @@ copy_static_site ()
2727# Print instructions if both parameters aren't provided
2828
2929if [[ $# -lt 2 ]] ; then
30− printf 'This command needs two arguments:\n(1) the path to your urbit.org repository\n(2) the path to your pier\n'
30+ printf '- This command needs two arguments:\n(1) the path to your urbit.org repository\n(2) the path to your pier\n'
3131 exit 0
3232fi
3333
3434# Print instructions
3535
36−read -n1 -s -r -p $'Boot your fake ~zod and run |mount %, then press any key to continue\n'
36+read -n1 -s -r -p $'- Boot your fakezod and run |mount %, then press any key to continue\n'
3737
3838# Create dist folder
3939
@@ -44,22 +44,22 @@ mkdir $dist
4444
4545copy_static_site $site $ship
4646rm -rf $ship/home/web/docs
47−read -n1 -s -r -p $'Wait for sync, then run |static in your urbit, wait for it to finish, then press any key to continue\n'
47+read -n1 -s -r -p $'- Wait for sync, then run |static in your urbit, wait for it to finish, then press any key to continue\n'
4848
4949# Copy results of first render (posts) to dist folder
5050
51−echo -e "Copying posts from $site to $ship"
51+echo -e "- Copying posts from $site to $ship"
5252cp -r $ship/.urb/put/web/* $dist
5353
5454# First render with |static in urbit (docs)
5555
5656copy_static_site $site $ship
5757rm -rf $ship/home/web/posts
58−read -n1 -s -r -p $'Wait for sync, then run |static in your urbit again, wait for it to finish, then press any key to continue\n'
58+read -n1 -s -r -p $'- Wait for sync, then run |static in your urbit again, wait for it to finish, then press any key to continue\n'
5959
6060# Copy results of second render (docs) to dist folder
6161
62−cp -rn $ship/.urb/put/web/* $dist # cp -n prevents overwriting exist folders
62+cp -rn $ship/.urb/put/web/* $dist # cp -n prevents overwriting existing folders
6363
6464# Remove unecessary files
6565
@@ -71,4 +71,4 @@ rm -rf $dist/js/*
7171
7272cp -r $site/static-site/js $dist
7373
74−echo -e "Find your website in $dist"
74+echo -e "- Find your website in $dist"