From 0fcaa9bdf137de85fd405734c340fb9e08c3cf1f Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Tue, 1 Oct 2024 20:05:13 -0500 Subject: maybe fix hidden files --- fix-dotfile-paths.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fix-dotfile-paths.sh') diff --git a/fix-dotfile-paths.sh b/fix-dotfile-paths.sh index 450d1c2..ae5162e 100755 --- a/fix-dotfile-paths.sh +++ b/fix-dotfile-paths.sh @@ -16,6 +16,10 @@ create_ls_entry () { if [ "$files" != '' ]; then echo '* Files' >> index.org echo "$files" | sort | while read -r file; do + if echo $file | grep -q '^\.'; then + tmp=$(echo "$file" | sed 's/^\.//' | sed 's/$/.hidden/') + mv $file $tmp + fi if [ "$file" = ".wallpaper" ]; then echo "- [[https://wallhaven.cc/w/vgryy5][=.wallpaper=]]" >> index.org elif echo "$file" | grep -q "\.org$" && [ "$file" != "index.org" ]; then -- cgit v1.2.3