diff options
author | Jacob Janzen <jjanzenn@proton.me> | 2024-08-08 20:40:12 -0500 |
---|---|---|
committer | Jacob Janzen <jjanzenn@proton.me> | 2024-08-08 20:40:12 -0500 |
commit | 0286dc4925633da0852798c5e1e8c99fbaf320f2 (patch) | |
tree | 01d80635528edf882db5cb10c9bbb6dc23be6670 /fix-dotfile-paths.sh | |
parent | 5c044f70f61cdd0813bc5843f369cb5e4874f7ec (diff) |
fix files not appearing
Diffstat (limited to 'fix-dotfile-paths.sh')
-rwxr-xr-x | fix-dotfile-paths.sh | 10 |
1 files 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 } |