michaelb / sniprun

A neovim plugin to run lines/blocs of code (independently of the rest of the file), supporting multiples languages
MIT License
1.43k stars 46 forks source link

Fix: correct string comparison operator for compatibility with sh #291

Closed Piotr1215 closed 1 month ago

Piotr1215 commented 1 month ago

The previous script used '==' for string comparison when checking if install.sh runs from dev branch, which is not compatible with 'sh'.

Changed to use '=' for maximum compatibility across different shells.

michaelb commented 1 month ago

Oh don't worry about the merge (which need was created by me not having pished an up to date dev before retargetting)