Merge ~kajiya/+git/next-demo:pro-detach into ~kajiya/+git/next-demo:main

Proposed by Chloé Smith
Status: Merged
Merged at revision: aca4b9f0306c83ca274127a7005f07077ade1a7c
Proposed branch: ~kajiya/+git/next-demo:pro-detach
Merge into: ~kajiya/+git/next-demo:main
Diff against target: 25 lines (+2/-1)
2 files modified
on-instance.sh (+1/-1)
token (+1/-0)
Reviewer Review Type Date Requested Status
Ankush Pathak (community) Approve
Review via email: mp+462975@code.launchpad.net

Commit message

feat: Add 'empty' token file as file and `pro detach`

Add a `pro detach "${TOKEN}"` command

* Also add the `token` file as a holder with explicit instructions
  to add a proper token afterwards

* Remove `set -e` from on-instance.sh so if a user drops into a bash
  session at the end of a demo, it won't kick them out if they mistype
  something

To post a comment you must log in.
Revision history for this message
Ankush Pathak (ankushpathak) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/on-instance.sh b/on-instance.sh
2index 254b742..a306180 100644
3--- a/on-instance.sh
4+++ b/on-instance.sh
5@@ -1,6 +1,5 @@
6 #!/bin/bash
7
8-set -e
9 clear
10
11 echo "=========================================================="
12@@ -46,5 +45,6 @@ echo "=========================================================="
13 read -r -p "Would you like to switch to a bash session on this instance?(y/n)[n]" ANSWER
14 if [ "${ANSWER}" != "y" ];
15 then
16+ sudo pro detach --assume-yes
17 exit
18 fi
19diff --git a/token b/token
20new file mode 100644
21index 0000000..31f6e38
22--- /dev/null
23+++ b/token
24@@ -0,0 +1 @@
25+<insert-ubuntu-pro-token-here>

Subscribers

People subscribed via source and target branches

to all changes: