diff --git a/developer/bin/develop_brew_cask b/developer/bin/develop_brew_cask index 8d98bf588f..cb046970b6 100755 --- a/developer/bin/develop_brew_cask +++ b/developer/bin/develop_brew_cask @@ -56,7 +56,7 @@ cd_to_version_dir () { not_inside_homebrew () { local tap_dir="$1" local git_root="$2" - if [[ "$(/usr/bin/stat -L -f '%i' "$tap_dir")" -eq "$(/usr/bin/stat -L -f '%i' "$git_root")" ]]; then + if [[ "$(/usr/bin/stat -L -f '%i' -- "$tap_dir")" -eq "$(/usr/bin/stat -L -f '%i' -- "$git_root")" ]]; then die "\nERROR: Run this script in your private repo, not inside Homebrew.\n" fi } diff --git a/developer/bin/production_brew_cask b/developer/bin/production_brew_cask index 5fcdbec3e9..318f280389 100755 --- a/developer/bin/production_brew_cask +++ b/developer/bin/production_brew_cask @@ -56,7 +56,7 @@ cd_to_version_dir () { not_inside_homebrew () { local tap_dir="$1" local git_root="$2" - if [[ "$(/usr/bin/stat -L -f '%i' "$tap_dir")" -eq "$(/usr/bin/stat -L -f '%i' "$git_root")" ]]; then + if [[ "$(/usr/bin/stat -L -f '%i' -- "$tap_dir")" -eq "$(/usr/bin/stat -L -f '%i' -- "$git_root")" ]]; then die "\nERROR: Run this script in your private repo, not inside Homebrew.\n" fi }