aboutsummaryrefslogtreecommitdiff
path: root/fix-dotfile-paths.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fix-dotfile-paths.sh')
-rwxr-xr-xfix-dotfile-paths.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/fix-dotfile-paths.sh b/fix-dotfile-paths.sh
index e4d22e0..c765b5d 100755
--- a/fix-dotfile-paths.sh
+++ b/fix-dotfile-paths.sh
@@ -49,7 +49,9 @@ 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
find -- . -maxdepth 1 -type d | sed '/\(^\.$\|^\.\/\.git$\|\.\/common\)/d' | while read -r root; do
+ echo creating root $root
root=$(echo "$root" | sed 's/\(\.\/\|\/$\)//')
+ echo root after cleanup: $root
echo "- [[https://jjanzen.ca/dotfiles/$root][$root]]" >> index.org
cd "$root" || exit
create_dir_tree "$root"