feat: Better config tool, ignore .config
This commit is contained in:
parent
5610b03e84
commit
a809c3b822
|
@ -4,3 +4,4 @@
|
||||||
node_modules
|
node_modules
|
||||||
package-lock.json
|
package-lock.json
|
||||||
snaps
|
snaps
|
||||||
|
.config
|
||||||
|
|
14
conf-tool.sh
14
conf-tool.sh
|
@ -54,8 +54,14 @@ DEVICE_PORT=$dev_addr
|
||||||
USER_KEY=$signing_key
|
USER_KEY=$signing_key
|
||||||
USER_EMAIL=$user_email"
|
USER_EMAIL=$user_email"
|
||||||
|
|
||||||
echo "Is this correct: $vals"
|
echo "
|
||||||
|
$vals
|
||||||
|
"
|
||||||
|
|
||||||
read -p "[y/N]" v # TODO: use
|
read -p "Is this correct [y/N]:" v
|
||||||
|
if [[ "$v" == [yY]* ]]; then
|
||||||
echo "$vals" > .config
|
echo "$vals" > .config
|
||||||
|
else
|
||||||
|
echo
|
||||||
|
bash $0
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue