From c54559cdeacad72c6729d03f5284780e44970295 Mon Sep 17 00:00:00 2001
From: Owen Jones <owen.jones@uwe.ac.uk>
Date: Wed, 6 Nov 2024 13:57:40 +0000
Subject: [PATCH] SSH extension installation step (will slow down script if
 already installed, but catches issues on machines where it isn't); Set flag
 to overwrite SSH config entirely

---
 quick-connect.bat | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/quick-connect.bat b/quick-connect.bat
index d9fd4ce..e8607f3 100644
--- a/quick-connect.bat
+++ b/quick-connect.bat
@@ -11,5 +11,6 @@ IF EXIST "C:\Users\%username%\.ssh\csctcloud\" (
     del /q "C:\Users\%username%\.ssh\csctcloud"
 )
 
-CALL az ssh config --ip csctcloud.uwe.ac.uk --file "C:\Users\%username%\.ssh\config" --keys-destination-folder "C:\Users\%username%\.ssh\csctcloud"
+CALL az extension add --upgrade -n ssh
+CALL az ssh config --ip csctcloud.uwe.ac.uk --overwrite --file "C:\Users\%username%\.ssh\config" --keys-destination-folder "C:\Users\%username%\.ssh\csctcloud"
 CALL code -n --remote ssh-remote+csctcloud.uwe.ac.uk
\ No newline at end of file
-- 
GitLab