diff --git a/scripts/fetch-configlet b/scripts/fetch-configlet index 46e59cd3..827088ab 100755 --- a/scripts/fetch-configlet +++ b/scripts/fetch-configlet @@ -49,10 +49,10 @@ get_download_url() { cut -d'"' -f4 } -main () { +main() { if [[ -d ./bin ]]; then output_dir="./bin" - elif [[ $PWD = */bin ]]; then + elif [[ $PWD == */bin ]]; then output_dir="$PWD" else echo "Error: no ./bin directory found. This script should be ran from a repo root." >&2