aboutsummaryrefslogtreecommitdiff
path: root/fix-dotfile-paths.sh
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2024-10-01 18:02:35 -0500
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2024-10-01 18:02:35 -0500
commit18c25a4fc1173361f2518701602cc29b422104a3 (patch)
treee8ecc849f637d9b017e739e57e68bdd325b7f370 /fix-dotfile-paths.sh
parent36ee833f36c90741bea34689822fe042b4966d55 (diff)
testing in prod :3
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"