aboutsummaryrefslogtreecommitdiff
path: root/fix-dotfile-paths.sh
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2024-12-29 11:58:17 -0600
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2024-12-29 11:58:17 -0600
commite6f411dc45556f986cc3e5e80618e49d386bea17 (patch)
treef85229fa86303b764c9df3ffb9b5fb0d058cf46d /fix-dotfile-paths.sh
parentd1dfa3db3394b313c41795035661d2c6fc0981b3 (diff)
more cleanup
Diffstat (limited to 'fix-dotfile-paths.sh')
-rwxr-xr-xfix-dotfile-paths.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/fix-dotfile-paths.sh b/fix-dotfile-paths.sh
index a31c7a4..e8d04c3 100755
--- a/fix-dotfile-paths.sh
+++ b/fix-dotfile-paths.sh
@@ -25,7 +25,7 @@ create_ls_entry () {
elif echo "$file" | grep -q "\.org$" && [ "$file" != "index.org" ]; then
new_file=$(echo "$file" | sed 's/\.org$//')
html=$(echo "$file" | sed 's/\.org$/\.html/')
- echo "- [[$2$1$html][=$new_file=]]" >> index.org
+ echo "- [[./$html][=$new_file=]]" >> index.org
fi
done
fi
@@ -41,7 +41,7 @@ create_dir_tree () {
dir=$(echo "$dir" | sed 's/^\.\///')
- create_ls_entry "$dir/" "$URLROOT"
+ create_ls_entry "$dir/"
cd "$ROOT" || exit
done