Skip to content

Commit

Permalink
Append line break before writing to .gitignore and .gitattributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgalentine007 committed May 22, 2018
1 parent e19eca4 commit bfcdbb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions installfilter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ GLOBAL_BIN=${GLOBAL_BIN//\\/\/}
grep -q -F "$GITFILTER" $GITATTRIBUTES > /dev/null 2>&1
if [ $? != "0" ]
then
echo -e "\n" >> $GITATTRIBUTES
echo $GITFILTER >> $GITATTRIBUTES
printf "$GITFILTER added to .gitattributes\n"
fi
Expand All @@ -51,6 +52,7 @@ fi
grep -q -F "$GITFILTERJSON" $GITIGNORE > /dev/null 2>&1
if [ $? != "0" ]
then
echo -e "\n" >> $GITIGNORE
echo $GITFILTERJSON >> $GITIGNORE
printf "$GITFILTERJSON added to .gitignore\n"
fi
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "no-secrets",
"version": "1.0.8",
"version": "1.0.9",
"description": "Smudge and clean filter toolset for keeping secrets out of your Git repositories and build systems.",
"main": "./src/index.js",
"scripts": {
Expand Down

0 comments on commit bfcdbb1

Please sign in to comment.