Skip to content

Commit

Permalink
fixed wc counting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dmalan committed Nov 24, 2023
1 parent c0e1bb0 commit 6745de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opt/cs50/bin/make
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if [[ $# -eq 1 ]] && [[ $1 != -* ]]; then

# Search recursively for .c file
paths=$(find * -name "$c")
lines=$(echo "$paths" | wc -l)
lines=$(echo -n "$paths" | wc -l)
echo -n "Quack. There isn't a file called ${bold}${c}${normal} in your current directory."
if [[ "$lines" -eq 1 ]]; then # If unambiguous
d=$(dirname "$paths")
Expand Down

0 comments on commit 6745de3

Please sign in to comment.