caiogondim / bullet-train.zsh

:bullettrain_side: An oh-my-zsh shell theme based on the Powerline Vim plugin
MIT License
2.82k stars 382 forks source link

Fix: Check for presence of go files #344

Open adrian-lin-1-0-0 opened 1 year ago

adrian-lin-1-0-0 commented 1 year ago

Previously, the script only checked for a single .go file using the -f *.go(#qN) condition, resulting in a false negative when multiple .go files were present. This has been fixed by using an array to capture all matching .go files and checking the length of the array.