scripts: more compatible shebangs

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
Philipp Schuster 2023-12-15 21:33:46 +01:00 committed by Rob Bradford
parent e0abeeb790
commit 91fe48d5f7
18 changed files with 24 additions and 24 deletions

View File

@ -147,7 +147,7 @@ We want to create a virtual machine with the following characteristics:
`/opt/clh/images/focal-server-cloudimg-amd64.raw`
```shell
#!/bin/bash
#!/usr/bin/env bash
curl --unix-socket /tmp/cloud-hypervisor.sock -i \
-X PUT 'http://localhost/api/v1/vm.create' \
@ -167,7 +167,7 @@ curl --unix-socket /tmp/cloud-hypervisor.sock -i \
Once the VM is created, we can boot it:
```shell
#!/bin/bash
#!/usr/bin/env bash
curl --unix-socket /tmp/cloud-hypervisor.sock -i -X PUT 'http://localhost/api/v1/vm.boot'
```
@ -177,7 +177,7 @@ curl --unix-socket /tmp/cloud-hypervisor.sock -i -X PUT 'http://localhost/api/v1
We can fetch information about any VM, as soon as it's created:
```shell
#!/bin/bash
#!/usr/bin/env bash
curl --unix-socket /tmp/cloud-hypervisor.sock -i \
-X GET 'http://localhost/api/v1/vm.info' \
@ -189,7 +189,7 @@ curl --unix-socket /tmp/cloud-hypervisor.sock -i \
We can reboot a VM that's already booted:
```shell
#!/bin/bash
#!/usr/bin/env bash
curl --unix-socket /tmp/cloud-hypervisor.sock -i -X PUT 'http://localhost/api/v1/vm.reboot'
```
@ -199,7 +199,7 @@ curl --unix-socket /tmp/cloud-hypervisor.sock -i -X PUT 'http://localhost/api/v1
Once booted, we can shut a VM down from the REST API:
```shell
#!/bin/bash
#!/usr/bin/env bash
curl --unix-socket /tmp/cloud-hypervisor.sock -i -X PUT 'http://localhost/api/v1/vm.shutdown'
```
@ -385,7 +385,7 @@ APIs work together, let's look at a complete VM creation flow, from the
[REST API](#rest-api) in order to creates a virtual machine:
```
shell
#!/bin/bash
#!/usr/bin/env bash
curl --unix-socket /tmp/cloud-hypervisor.sock -i \
-X PUT 'http://localhost/api/v1/vm.create' \

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
: '
This script checks if an image is compatible with Cloud Hypervisor.
At first, it detects the image type(raw or qcow2),

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
WORKLOADS_DIR="$HOME/workloads"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -x
rm -f /tmp/ubuntu-cloudinit.img

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright © 2020 Intel Corporation

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -x
sudo apt install -y libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf git make dpkg-dev libmnl-dev pkg-config iproute2

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -x
source $HOME/.cargo/env

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -x
source $HOME/.cargo/env

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -x
source $HOME/.cargo/env

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -x
source $HOME/.cargo/env

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -x
# This set of vfio tests require to be ran on a specific machine with

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -x
source $HOME/.cargo/env

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -x
source $HOME/.cargo/env

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -x
source $HOME/.cargo/env

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -x
source $HOME/.cargo/env

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
set -x

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source $HOME/.cargo/env
source $(dirname "$0")/test-util.sh

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
hypervisor="kvm"
test_filter=""