aboutsummaryrefslogtreecommitdiff
path: root/fixmes
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-09-04 12:13:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-09-04 12:13:11 -0300
commitb41d8d910942a54f202172c3d339593daa034f20 (patch)
tree855706b81456a81f25398d2e1ed328d91c000115 /fixmes
parentfaa17a6f8eaaf13235338cbe2cc5474aff5e9ced (diff)
downloadscripts-b41d8d910942a54f202172c3d339593daa034f20.tar.gz
scripts-b41d8d910942a54f202172c3d339593daa034f20.tar.bz2
Fixmes: default arg
Diffstat (limited to 'fixmes')
-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/^ *//'