diff options
author | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-10-01 20:05:13 -0500 |
---|---|---|
committer | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-10-01 20:05:13 -0500 |
commit | 0fcaa9bdf137de85fd405734c340fb9e08c3cf1f (patch) | |
tree | 0df23b503c25a04f53ca4fad354d8a3c446dd775 /fix-dotfile-paths.sh | |
parent | 477148d207308f190ece92868343fbe13bf6d7a6 (diff) |
maybe fix hidden files
Diffstat (limited to 'fix-dotfile-paths.sh')
-rwxr-xr-x | fix-dotfile-paths.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 |