fix: creating server doc is broken

The head command would have returned the first 10 IDs.
This commit is contained in:
Julian Tölle 2024-04-03 11:00:21 +02:00 committed by GitHub
parent 93731565c0
commit 274e4192f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,7 @@ Data (Ignition) will work as expected.
```shell
# Get ID of the most recent flatcar snapshot for x86
$ SNAPSHOT_ID=$(hcloud image list --type=snapshot --selector=os=flatcar --architecture=x86 -o=columns=id -o noheader --sort=created:desc | head)
$ SNAPSHOT_ID=$(hcloud image list --type=snapshot --selector=os=flatcar --architecture=x86 -o=columns=id -o noheader --sort=created:desc | head -n1)
# Create a new server
# If you have, you can specify an Ignition config with `--user-data-from-file ignition-user.json`