From 317c15feba4a3d7cba612bf7844f9197289ab313 Mon Sep 17 00:00:00 2001 From: Carlos Date: Mon, 11 Mar 2024 12:07:19 +0000 Subject: [PATCH] fix: fix version check in bin/workon.sh (#66) --- bin/workon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/workon.sh b/bin/workon.sh index 5be8d45..f6887fd 100755 --- a/bin/workon.sh +++ b/bin/workon.sh @@ -39,8 +39,8 @@ complete -F _complete_invoke -o default invoke inv # Environment vars # ---------------------------- -VERSION_FILE=${PROJ_ROOT}/VERSION -export FAASMCTL_VERSION=$(cat ${VERSION_FILE}) +# Read version by calling locally-installed `faasmctl` as smoke test +export FAASMCTL_VERSION=$(faasmctl --version | cut -d' ' -f2) export PS1="(faasmctl-dev) $PS1"