summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-08-11 08:40:13 -0400
committerPete Johanson <peter@peterjohanson.com>2020-08-11 08:40:13 -0400
commit47dbba21849a136797014f4691c999de28073bf3 (patch)
tree1d1fd4587561fee34b2204f3e9f460177f6b98e3 /docs
parentb0c648ad57d138c462fac538c7ea25f88b03e443 (diff)
Fix sed -i usage on macOS, accept 'Y'.
Diffstat (limited to 'docs')
-rw-r--r--docs/static/setup.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/static/setup.sh b/docs/static/setup.sh
index ce2fe25..27dcb0b 100644
--- a/docs/static/setup.sh
+++ b/docs/static/setup.sh
@@ -90,7 +90,7 @@ fi
echo ""
read -p "Continue? [Yn]: " do_it
-if [ -n "$do_it" ] && [ "$do_it" != "y" ]; then
+if [ -n "$do_it" ] && [ "$do_it" != "y" ] && [ "$do_it" != "Y" ]; then
echo "Aborting..."
exit
fi
@@ -108,7 +108,7 @@ fi
popd
-sed -i \
+sed -i'.orig' \
-e "s/BOARD_NAME/$board/" \
-e "s/SHIELD_NAME/$shield/" \
-e "s/KEYBOARD_TITLE/$shield_title/" \
@@ -116,9 +116,11 @@ sed -i \
if [ "$board" == "proton_c" ]; then
# Proton-C board still fa
- sed -i -e "s/uf2/hex/g" .github/workflows/build.yml
+ sed -i'.orig' -e "s/uf2/hex/g" .github/workflows/build.yml
fi
+rm .github/workflows/*.yml.orig
+
rm -rf .git
git init .
git add .