diff options
author | Jacob Janzen <jjanzenn@proton.me> | 2024-08-10 12:22:34 -0500 |
---|---|---|
committer | Jacob Janzen <jjanzenn@proton.me> | 2024-08-10 12:22:34 -0500 |
commit | dd77b8691543d8208c75751fb3edf378f2d3d73b (patch) | |
tree | 8be44c36aff786ed84a0ea87ebaf3be9e63c9a1b /fix-dotfile-paths.sh | |
parent | 41e89d4de546f52c268cc7e8468461488c1c5b56 (diff) |
simpler and more correct file detection
Diffstat (limited to 'fix-dotfile-paths.sh')
-rwxr-xr-x | fix-dotfile-paths.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fix-dotfile-paths.sh b/fix-dotfile-paths.sh index 8894a7e..e4d22e0 100755 --- a/fix-dotfile-paths.sh +++ b/fix-dotfile-paths.sh @@ -13,7 +13,7 @@ create_ls_entry () { fi done files=$(find -L -- . -maxdepth 1 -type f | sed 's/^\.\///') - if [ "$(echo "$files" | wc -l | sed 's/[ \t]*//g')" != 0 ]; then + if [ "$files" != '' ]; then echo '* Files' >> index.org echo "$files" | sort | while read -r file; do if [ "$file" = ".wallpaper" ]; then |