Changed from gentpl to gentmpl

This commit is contained in:
Thord Johansson 2023-04-30 14:15:53 +02:00
parent 715efb322a
commit a7135c8423
2 changed files with 5 additions and 2 deletions

View File

@ -4,5 +4,5 @@ Some useful system scripts for things like fan control and other convenience.
You can regenerate `env-template.txt` based on the current .env file with: You can regenerate `env-template.txt` based on the current .env file with:
```bash ```bash
./setup.sh --gentpl ./setup.sh --gentmpl
``` ```

View File

@ -1,8 +1,11 @@
#!/bin/bash #!/bin/bash
if [ $1 == "--gentpl" ]; then if [ $1 == "--gentmpl" ]; then
grep "[A-Z_ ]*=" .env -o > env-template.txt grep "[A-Z_ ]*=" .env -o > env-template.txt
exit 0 exit 0
elif [ ! -z "$1" ]; then
echo "Unrecognised parameter, use --gentmpl to generate .env template"
exit 1
fi fi
# Installs prerequisites for some of the system scripts # Installs prerequisites for some of the system scripts