feat: Better config tool, ignore .config

This commit is contained in:
Maciej Krüger 2018-10-21 14:07:59 +02:00
parent 5610b03e84
commit a809c3b822
2 changed files with 11 additions and 4 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
node_modules
package-lock.json
snaps
.config

View File

@ -54,8 +54,14 @@ DEVICE_PORT=$dev_addr
USER_KEY=$signing_key
USER_EMAIL=$user_email"
echo "Is this correct: $vals"
echo "
$vals
"
read -p "[y/N]" v # TODO: use
echo "$vals" > .config
read -p "Is this correct [y/N]:" v
if [[ "$v" == [yY]* ]]; then
echo "$vals" > .config
else
echo
bash $0
fi