aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfix-dotfile-paths.sh2
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