Skip to content

Commit

Permalink
Attempt to fix a bug with useflag expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
Toasterbirb committed Oct 11, 2023
1 parent 1c285c7 commit c2d5bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion birb
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ has_use()
{
# Check if a useflag is set by using grep
HAS_FLAG="$(echo "$USE_FLAGS" | grep -wo "$1")"
return "$([ -n "$HAS_FLAG" ])"
[[ -n "$HAS_FLAG" ]] && return 0 || return 1
}

# If the use flag has been set in the config file, expand it into some command
Expand Down

0 comments on commit c2d5bf7

Please sign in to comment.