aboutsummaryrefslogtreecommitdiff
path: root/fix-dotfile-paths.sh
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2024-10-01 20:05:13 -0500
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2024-10-01 20:05:13 -0500
commit0fcaa9bdf137de85fd405734c340fb9e08c3cf1f (patch)
tree0df23b503c25a04f53ca4fad354d8a3c446dd775 /fix-dotfile-paths.sh
parent477148d207308f190ece92868343fbe13bf6d7a6 (diff)
maybe fix hidden files
Diffstat (limited to 'fix-dotfile-paths.sh')
-rwxr-xr-xfix-dotfile-paths.sh4
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