10 lines
340 B
Bash
10 lines
340 B
Bash
#!/usr/bin/env bash
|
|
|
|
instance_name=$(incus launch nixos-gen/custom/fj-lxc-vm-x86_64 | grep -oP 'Instance name is: \K\S+')
|
|
echo "The captured instance name is: $instance_name"
|
|
|
|
# Call the push_token.sh script with the new instance name
|
|
./push_token.sh "$instance_name"
|
|
echo "Pushing token to instance"
|
|
|
|
echo "Process completed successfully"
|