Skip to content

Commit

Permalink
Remove "==" bash-ism
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Jun 15, 2024
1 parent c5df8f5 commit 5466a26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tools/firmware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ homebrew_check () {
}

detect_package_manager () {
if [[ $(uname -s) == "Darwin" ]]
if [[ $(uname -s) = "Darwin" ]]
then
echo brew
elif apt --help >/dev/null 2>&1
Expand Down Expand Up @@ -443,7 +443,7 @@ create_firmware_archive() {
archive=$2
python_check
rename_firmware "$firmware_tree" "$archive" ${verbose}
if [[ $(uname -s) == "Darwin" ]]; then
if [[ $(uname -s) = "Darwin" ]]; then
identifier=$(system_profiler SPHardwareDataType | grep "Model Identifier" | cut -d ":" -f 2 | xargs)
if [[ (${identifier} = iMac19,1) || (${identifier} = iMac19,2) || (${identifier} = iMacPro1,1) ]]; then
nvramfile=$(ioreg -l | grep RequestedFiles | cut -d "/" -f 5 | rev | cut -c 4- | rev)
Expand Down

0 comments on commit 5466a26

Please sign in to comment.