From fc645f8d3e2faa98926ec67c7322f79af8d4843e Mon Sep 17 00:00:00 2001 From: Shawn <506895667@qq.com> Date: Sat, 7 May 2022 23:44:36 +0800 Subject: [PATCH] fix: please the spell checker --- scripts/prepare-build-deps.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/prepare-build-deps.sh b/scripts/prepare-build-deps.sh index 12daa01bc..3c1048a27 100755 --- a/scripts/prepare-build-deps.sh +++ b/scripts/prepare-build-deps.sh @@ -11,7 +11,7 @@ dependency_missing() { echo "error: $1 is not found in the system" if [ "${AUTO_INSTALL_BUILD_DEPS}" = "1" ]; then echo "brew install $1" - brew install $1 + brew install "$1" else echo "You can install it by running:" echo " brew install $1" @@ -23,14 +23,14 @@ prepare_mac_osx() { current_packages=$(brew list) for package in ${required_packages_mac_osx} do - if ! echo ${current_packages} | grep -q "${package}"; then - dependency_missing ${package} + if ! echo "${current_packages}" | grep -q "${package}"; then + dependency_missing "${package}" fi done for cmd in ${required_cmds_mac_osx} do if ! command -v "${cmd}" &> /dev/null; then - dependency_missing ${cmd} + dependency_missing "${cmd}" fi done }