unoverse 0.1.48 → 0.1.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/operator/lib/ground.sh +16 -3
- package/package.json +1 -1
package/operator/lib/ground.sh
CHANGED
|
@@ -40,9 +40,22 @@ _ground_do() {
|
|
|
40
40
|
fi
|
|
41
41
|
fi
|
|
42
42
|
if ! doctl account get >/dev/null 2>&1; then
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
# Authenticate RIGHT HERE and keep going: doctl auth init is interactive anyway,
|
|
44
|
+
# so there is nothing to leave the flow for. The token comes from
|
|
45
|
+
# cloud.digitalocean.com/account/api (Generate New Token, read and write).
|
|
46
|
+
echo ""
|
|
47
|
+
info "doctl needs a DigitalOcean API token. Generate one here:"
|
|
48
|
+
echo ""
|
|
49
|
+
echo -e " ${CYAN}https://cloud.digitalocean.com/account/api/tokens${NC}"
|
|
50
|
+
echo ""
|
|
51
|
+
if ! doctl auth init; then
|
|
52
|
+
fail "authentication did not complete"
|
|
53
|
+
return 1
|
|
54
|
+
fi
|
|
55
|
+
if ! doctl account get >/dev/null 2>&1; then
|
|
56
|
+
fail "that token did not authenticate"
|
|
57
|
+
return 1
|
|
58
|
+
fi
|
|
46
59
|
fi
|
|
47
60
|
ok "doctl authenticated"
|
|
48
61
|
|
package/package.json
CHANGED