From 264c3a5941ce7c134ddd99abd12efd9e0f0486d1 Mon Sep 17 00:00:00 2001 From: FancyKings <35259519+FancyKings@users.noreply.github.com> Date: Thu, 7 Sep 2023 10:01:28 +0800 Subject: [PATCH] Fix VSCode plugin directory recognition error. (#15) Fixed pattern matching string in regular expressions with the goal of correctly recognizing to the plugin directory. --- vscode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vscode.sh b/vscode.sh index 2d9bc97..17c2b61 100755 --- a/vscode.sh +++ b/vscode.sh @@ -8,7 +8,7 @@ if [ ! -d "$EXTENSIONS_DIR" ]; then exit 1 fi -COPILOT_DIR=$(ls -lt "$EXTENSIONS_DIR" | grep '^d' | awk '{print $9}' | grep -E '^github\.copilot-\d+\.\d+\.\d+$' | head -n 1) +COPILOT_DIR=$(ls -lt "$EXTENSIONS_DIR" | grep '^d' | awk '{print $9}' | grep -E '^github\.copilot-[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1) if [ -z "$COPILOT_DIR" ]; then echo "ERROR: Copilot extension not found!" exit 1