more cleanup

This commit is contained in:
Jacob Janzen 2024-12-29 11:58:17 -06:00
parent d1dfa3db33
commit e6f411dc45

View file

@ -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