Skip to content

Commit

Permalink
Fixed bug in header dection RE
Browse files Browse the repository at this point in the history
  • Loading branch information
soccin committed Apr 25, 2016
1 parent 37bc089 commit 14e2388
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion applyFilter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ fi
#

HEADER=$(head -1 $MAFIN)
if [[ ! "$HEADER" =~ /^#/ ]]; then
if [[ ! "$HEADER" =~ ^# ]]; then
echo "#version 2.4" > $MAFOUT
else
egrep "^#" $MAFIN > $MAFOUT
fi

# Add version tag
Expand Down

0 comments on commit 14e2388

Please sign in to comment.