snapctl doesn't error if it fails I guess

This commit is contained in:
Erica Portnoy 2020-07-01 19:22:00 -07:00
parent 7c683ba6c5
commit 4635ba26dd

View file

@ -1,7 +1,7 @@
#!/bin/sh -e
snapctl get first-install
if [ "$?" -eq "1"]; then
first_install=$(snapctl get first-install)
if [ "$first_install" -ne "false"]; then
snapctl set first-install="false"
exit 0
fi