This file contains hidden or 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 | |
| # Script for setting up working environment | |
| # Ensure that script ran in parent shell | |
| read -p $"Did you run the script on parent shell? Kinda 'source script.sh' [y/n] \n" answer | |
| if [[ "$answer" != "y" ]]; then | |
| echo "Run the script on parent shell, like this '. script.sh' or 'source script.sh'" | |
| exit 1 | |
| fi |