aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfixmes6
1 files changed, 5 insertions, 1 deletions
diff --git a/fixmes b/fixmes
index 82623a4..dda4f82 100755
--- a/fixmes
+++ b/fixmes
@@ -10,5 +10,9 @@ BASENAME="`basename $NAME`"
# Run
if [ ! -z "$1" ] && [ -e "$1" ]; then
- grep -i "FIXME" $1 | sed -e 's/^ *//'
+ file="$1"
+else
+ file='-R *'
fi
+
+grep -i "FIXME" $file | sed -e 's/^ *//'