Skip to content

Commit

Permalink
Fixed iterpretation by wrapping commit info within double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
junaid1460 committed Dec 25, 2017
1 parent dc98344 commit cd85b83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions src/functions.cat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@ showfile () {
file=$1
commit=$2
color $Green
print +++
print "+++"
colori $Yellow
if [ "$3" == "1" ]
then
cat "$2"
else
print $commit
fi
print "$commit"
color $Off
# echo $message
cat $files_dir/$file
colori $Green
print +++
print "+++"
color $Off
}

Expand Down
2 changes: 1 addition & 1 deletion src/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Show summary
show () {
showfile "../$info_temp_name" "$commit_temp_file" "1"
showfile "../$info_temp_name" "$(cat $commit_temp_file)"
}

# write content to new file and commit
Expand Down

0 comments on commit cd85b83

Please sign in to comment.