From 75327f09c1ff814537aeff028b28d5377b84ece2 Mon Sep 17 00:00:00 2001 From: Christian Nieves Date: Wed, 22 Feb 2023 17:24:10 -0600 Subject: [PATCH] knock --- zsh/.bash_profile.google | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zsh/.bash_profile.google b/zsh/.bash_profile.google index e8e1390..004e725 100644 --- a/zsh/.bash_profile.google +++ b/zsh/.bash_profile.google @@ -74,6 +74,17 @@ export PATH=$PATH:/usr/local/google/home/cnieves/.local/binexport PATH=$PATH:/us source ~/fzf-at-google.zsh +# Temporary definition for knock, which will override itself with the +# real implementation. +knock() { + if gcertstatus --nocheck_ssh &>/dev/null; then + source /google/bin/releases/knock/knock.sh + knock "$@" # Call the real implementation and pass any parameters. + else + echo "ERROR: Cannot invoke knock before gcert has been run" >&2 + fi +} + sl() { blaze build --config gmscore_arm64 //java/com/google/android/gmscore/$1:$2