Skip to content

Commit

Permalink
Revert back to Parameter Expansion
Browse files Browse the repository at this point in the history
Now that Bash < 4.0 is not supported, we can revert this.
  • Loading branch information
oh2fih authored Mar 31, 2024
1 parent b3fb094 commit e02cbc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions securitytxt-signer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ else
GREPABLE_KEY=${KEY//0x/}
FP=$(echo "$KEY_INFO" | grep -i "$GREPABLE_KEY" | sed -e 's/[^A-F0-9]//g')
KEY="0x${FP}"
if ! [[ "${KEY}" = "0x$(echo "${GREPABLE_KEY}" | awk '{print toupper($0)}')" ]]; then
echo -e "\033[0;33mEXPANDED 0x$(echo "${GREPABLE_KEY}" | awk '{print toupper($0)}') TO ${KEY}\033[0;0m"
if ! [[ "${KEY}" = "0x${GREPABLE_KEY^^}" ]]; then
echo -e "\033[0;33mEXPANDED 0x${GREPABLE_KEY^^} TO ${KEY}\033[0;0m"
fi
fi

Expand Down

0 comments on commit e02cbc3

Please sign in to comment.