From 46835eedcebdce34bacff6f24fc5ad77a5b1e566 Mon Sep 17 00:00:00 2001 From: emarshak Date: Thu, 26 Aug 2021 09:15:02 -0400 Subject: [PATCH] Exact match current firebase directory in config Ensure the firebase project isn't being pulled from a project whose directory name is a substring of the other --- firebase.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firebase.plugin.zsh b/firebase.plugin.zsh index aff65bc..621970b 100644 --- a/firebase.plugin.zsh +++ b/firebase.plugin.zsh @@ -112,11 +112,11 @@ function get_config_project_id() { then # May be either the project id itself or an alias (which lives in .firebaserc) local target=$(get_firebase_dir) - echo $(grep -s $target ~/.config/configstore/firebase-tools.json | cut -d'"' -f 4) + echo $(grep -s \"$target\" ~/.config/configstore/firebase-tools.json | cut -d'"' -f 4) fi } function get_rc_project_id() { local rc_path="$(get_firebase_dir)/.firebaserc" echo $(grep $1 $rc_path | cut -d'"' -f 4) -} \ No newline at end of file +}