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