diff options
-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 |