aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Janzen <jjanzenn@proton.me>2024-08-08 20:25:09 -0500
committerJacob Janzen <jjanzenn@proton.me>2024-08-08 20:25:09 -0500
commit571138e5a1c2328b4332b39f7d610dbdece3768b (patch)
treef4fd3f33db1aedb9488c6c74a9e8c1d2634b004a
parenta286545c795afb175157acb04fb5f8b632bc6056 (diff)
fix file paths
-rwxr-xr-xfix-dotfile-paths.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/fix-dotfile-paths.sh b/fix-dotfile-paths.sh
index 17ed045..02cf0ae 100755
--- a/fix-dotfile-paths.sh
+++ b/fix-dotfile-paths.sh
@@ -8,13 +8,13 @@ create_ls_entry () {
fi
find -- . -maxdepth 1 -type d | sed '/^\.$/d' | sed 's/^\.\///' | while read -r dir; do
if [ "${dir}" != "*" ]; then
- echo "- [[https://jjanzen.ca/dotfiles/$1${dir}][${dir}/]]" >> index.org
+ echo "- [[https://jjanzen.ca/dotfiles/$1${dir}][=${dir}/=]]" >> index.org
fi
done
echo "* Files" >> index.org
find -- . -maxdepth 1 -type f | sed 's/^\.\///' | while read -r file; do
if test -f "${file}"; then
- if [ "${file}" = "*" ] || [ "${file}" = "index.org" ] || [ "${file}" = "README.md" ] || [ "${file}" = "LICENSE" ] || [ "${file}" = ".build.yml" ]; then
+ if [ "${file}" = "*" ] || [ "${file}" = "index.org" ] || [ "${file}" = "README.md" ] || [ "${file}" = "LICENSE" ] || [ "${file}" = ".build.yml" ] || echo "${file}" | grep "\.tar\.gz$"; then
continue
elif [ "${file}" = ".wallpaper" ]; then
echo "- [[https://wallhaven.cc/w/vgryy5][.wallpaper]]" >> index.org
@@ -26,7 +26,7 @@ create_ls_entry () {
else
new_file=$file
fi
- html=$(echo "${file}" | sed 's/\.org\$/\.html/')
+ html=$(echo "${file}" | sed 's/\.org$/\.html/')
echo "- [[https://jjanzen.ca/dotfiles/$1${html}][${new_file}]]" >> index.org
fi
done