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 | |
# Creator: Bryse Meijer | |
# Scans which .env files are available in your folder and renames them appropriately. | |
# Required: Add a new line to the top of your .env with the name of your environment "# Production" to indicate what kind of environment it is. | |
# Example (.env): # Test | |
env_choice="${1}" | |
file_env() { | |
head -n 1 $1 2> /dev/null | tr -d '[:space:]' | cut -c2- | tr '[:upper:]' '[:lower:]' |