diff options
author | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-12-29 10:44:30 -0600 |
---|---|---|
committer | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-12-29 10:44:30 -0600 |
commit | 8587af9edfe8d1a2f9b11863b324b027be40887a (patch) | |
tree | 325732b3c54ff70f32be3872b6755a6eca0f9611 | |
parent | a5fbeb31be3802869bc04a2da1b292058dce76b9 (diff) |
fix dotfile fixer
-rwxr-xr-x | deploy.sh | 2 | ||||
-rwxr-xr-x | fix-dotfile-paths.sh | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -25,5 +25,5 @@ cd ~/dotfiles || exit emacs --batch -f package-initialize --script ~/website/publish.el ~/website/post-publish.sh -cp -r "public_html/*" "$location" +cp -r "$HOME/public_html/*" "$location" chown git:git "$location" diff --git a/fix-dotfile-paths.sh b/fix-dotfile-paths.sh index 1e0826c..0757a5c 100755 --- a/fix-dotfile-paths.sh +++ b/fix-dotfile-paths.sh @@ -32,7 +32,7 @@ create_ls_entry () { } create_dir_tree () { - ROOT="$HOME/.dotfiles/$1" + ROOT="$HOME/dotfiles/$1" URLROOT="https://jjanzen.ca/dotfiles/$1/" create_ls_entry "" "$URLROOT" @@ -48,10 +48,10 @@ create_dir_tree () { done } -cd ~/.dotfiles || exit +cd ~/dotfiles || exit git checkout main echo '#+title: Dotfiles' > index.org -echo 'This is my system configuration. These pages are automatically generated from the sources hosted [[https://git.sr.ht/~jjanzen/.dotfiles][here]]. Choose which system to browse: ' >> index.org +echo 'This is my system configuration. These pages are automatically generated from the sources hosted [[https://git.sr.ht/~jjanzen/dotfiles][here]]. Choose which system to browse: ' >> index.org find -- . -maxdepth 1 -type d | sed '/\(^\.$\|^\.\/\.git$\|\.\/common\)/d' | while read -r root; do echo creating root $root root=$(echo "$root" | sed 's/\(\.\/\|\/$\)//') @@ -59,7 +59,7 @@ find -- . -maxdepth 1 -type d | sed '/\(^\.$\|^\.\/\.git$\|\.\/common\)/d' | whi echo "- [[https://jjanzen.ca/dotfiles/${root}][${root}]]" >> index.org cd "$root" || exit create_dir_tree "$root" - cd ~/.dotfiles || exit + cd ~/dotfiles || exit done cd || exit |