Removed Unnecessary Usage of Cat

This commit is contained in:
Nathan Broadbent
2012-01-25 23:22:52 +08:00
parent 22086627d0
commit 505f52a8ff
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ ensureIndex() {
}
index_no_newlines() {
cat $git_index_file | tr "\\n" " "
tr "\\n" " " < $git_index_file
}

View File

@@ -97,7 +97,7 @@ test_git_status_shortcuts() {
# Run command in shell, load output from temp file into variable
temp_file=$(mktemp -t scm_breeze.XXXXXXXXXX)
git_status_shortcuts > $temp_file
git_status=$(cat $temp_file | strip_colors)
git_status=$(<$temp_file strip_colors)
assertIncludes "$git_status" "new file: *\[1\] *new_file" || return
assertIncludes "$git_status" "deleted: *\[2\] *deleted_file" || return