Skip to content

Commit

Permalink
Strip whitespace from wc output, for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Feb 4, 2022
1 parent e1c65a6 commit c495c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function is_rsa_private_key() {
}

function is_aes_key() {
[[ "$(wc -c)" == "128" ]]
[[ "$(wc -c | xargs)" == "128" ]]
}

##############################################################################
Expand Down

0 comments on commit c495c7f

Please sign in to comment.