From 0286dc4925633da0852798c5e1e8c99fbaf320f2 Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Thu, 8 Aug 2024 20:40:12 -0500 Subject: fix files not appearing --- fix-dotfile-paths.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/fix-dotfile-paths.sh b/fix-dotfile-paths.sh index b155910..59db2bd 100755 --- a/fix-dotfile-paths.sh +++ b/fix-dotfile-paths.sh @@ -16,17 +16,13 @@ create_ls_entry () { if echo "${file}" | grep -q "\(\.tar\.gz$\|\*|^index\.org$\|^README\.md$\|^\.build\.yml$\|^install$\|^LICENSE$\)"; then continue elif [ "${file}" = ".wallpaper" ]; then - echo "- [[https://wallhaven.cc/w/vgryy5][.wallpaper]]" >> index.org + echo "- [[https://wallhaven.cc/w/vgryy5][=.wallpaper=]]" >> index.org continue fi - if echo "${file}" | grep -q "\.org$"; then - new_file=$(basename "$(grep -q '#+begin_src' "${file}" | head -1 | cut -d ' ' -f 4)") - else - new_file=$file - fi + new_file=$(basename "$(grep -q '#+begin_src' "${file}" | head -1 | cut -d ' ' -f 4)") html=$(echo "${file}" | sed 's/\.org$/\.html/') - echo "- [[https://jjanzen.ca/dotfiles/$1${html}][${new_file}]]" >> index.org + echo "- [[https://jjanzen.ca/dotfiles/$1${html}][=${new_file}=]]" >> index.org done } -- cgit v1.2.3