fix bug reading file
[tee-unique] / appendu
diff --git a/appendu b/appendu
index 1e3d583c550e9f084da2cfe8df9be78fae1ed332..d03fb45ad9541bc7c32b17d774a3096ac11192cf 100755 (executable)
--- a/appendu
+++ b/appendu
@@ -75,7 +75,8 @@ LINE_SETs are treated the same.
         sed -ie '$a\' "$file"
         # command substitution removes any trailing newlines, so we have to add
         # a non-newline ending, we randomly chose "b", then remove it.
-        local content=$(cat "$file"; echo b) content=${content%b}
+        local content=$(cat "$file"; echo b)
+        content=${content%b}
     fi
     
     # we aren't using regex because we want to match strings,