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 /fix-dotfile-paths.sh | |
parent | a5fbeb31be3802869bc04a2da1b292058dce76b9 (diff) |
fix dotfile fixer
Diffstat (limited to 'fix-dotfile-paths.sh')
-rwxr-xr-x | fix-dotfile-paths.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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 |