Created
October 20, 2023 16:38
-
-
Save tiagovrtr/d17c466ccdfa4e92b9cf01c564974fe8 to your computer and use it in GitHub Desktop.
post-checkout git hook for poetry install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Prompt the user if they want to run poetry install | |
read -p "Do you want to run poetry install --sync? (y/n) " -n 1 -r < /dev/tty | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
poetry install --sync | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment