Skip to content

Commit 80f1b52

Browse files
bug: don't match archive with glob
In the current directory is the archive (gptscript...tar.gz) and the binary (gptscript or gptscript.exe). The current approach will sometimes match the archive. By removing '*' it will look for the exact filename.
1 parent 97a47fa commit 80f1b52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gptscript/install.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def install():
150150

151151
# Find the extracted binary and rename/move it to the versioned name in the python bin directory
152152
extracted_binary_path = next(
153-
output_dir.glob(gptscript_binary_name + "*"), None
153+
output_dir.glob(gptscript_binary_name), None
154154
) # Adjust the glob pattern if necessary
155155
if extracted_binary_path:
156156
shutil.move(str(extracted_binary_path), str(versioned_binary_path))

0 commit comments

Comments
 (0)