mirror of
https://github.com/pengzhile/cocopilot.git
synced 2025-01-18 18:45:52 +08:00
Fix VSCode plugin directory recognition error. (#15)
Fixed pattern matching string in regular expressions with the goal of correctly recognizing to the plugin directory.
This commit is contained in:
parent
f7d7a32000
commit
264c3a5941
@ -8,7 +8,7 @@ if [ ! -d "$EXTENSIONS_DIR" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
if [ -z "$COPILOT_DIR" ]; then
|
||||||
echo "ERROR: Copilot extension not found!"
|
echo "ERROR: Copilot extension not found!"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user