Skip to content

Commit

Permalink
fix for handling of tab character for gnu grep
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-tepper committed May 14, 2019
1 parent a716471 commit 589e868
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion star/star_bash_source_files/star_source
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ function s() {
return 2
fi
star_name=$1
star_dir=$(grep -m 1 -i "^${star_name}\t" $STAR_FILE | awk -F$'\t' '{print $2}')
tab=$'\t'
star_dir=$(grep -m 1 -i "^${star_name}${tab}" $STAR_FILE | awk -F$'\t' '{print $2}')
if [ -z "$star_dir" ]; then
echo "no starred dir found for ${star_name}" >&2
return 1
Expand Down

0 comments on commit 589e868

Please sign in to comment.