From 14f8dbbec982cc088dfb346fd018088bf5f92d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Tue, 15 Feb 2022 23:39:10 +0100 Subject: [PATCH] make git magic --- init.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/init.sh b/init.sh index ae3d289..3b74a09 100755 --- a/init.sh +++ b/init.sh @@ -1,9 +1,14 @@ #!/bin/bash -{ +{ ## DO NOT REMOVE THIS OR EVERYTHING BLOWS UP source config find -type f | xargs sed -i "s/\$mainfile/$(printf '%s\n' "$mainfile" | sed -e 's/[\/&]/\\&/g')/g" find -type f | xargs sed -i "s/\$course/$(printf '%s\n' "$course" | sed -e 's/[\/&]/\\&/g')/g" find -type f | xargs sed -i "s/\$stylefile/$(printf '%s\n' "$stylefile" | sed -e 's/[\/&]/\\&/g')/g" find -type f | xargs sed -i "s/\$repo/$(printf '%s\n' "$repo" | sed -e 's/[\/&]/\\&/g')/g" find -type f | xargs sed -i "s/\$term/$(printf '%s\n' "$term" | sed -e 's/[\/&]/\\&/g')/g" +rm init.sh +rm -rf .git +git init +git add . +git commit -m "initial commit" }