diff --git a/eng/native/init-distro-rid.sh b/eng/native/init-distro-rid.sh index 863829deec4dfa..5f6b194600124a 100644 --- a/eng/native/init-distro-rid.sh +++ b/eng/native/init-distro-rid.sh @@ -41,7 +41,7 @@ initNonPortableDistroRid() # We have forced __PortableBuild=0. This is because -portablebuld # has been passed as false. if (( isPortable == 0 )); then - if [[ "${ID}" = "rhel" || "${ID}" = "rocky" ]]; then + if [ "${ID}" = "rhel" ] || [ "${ID}" = "rocky" ]; then # remove the last version digit VERSION_ID="${VERSION_ID%.*}" fi