Standardised shell scripts shebang

This commit is contained in:
lepapareil 2022-12-14 09:28:25 +01:00
parent 93ad62d40c
commit 65b588f770
No known key found for this signature in database
GPG Key ID: F4F06B068FB00692
22 changed files with 29 additions and 29 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -eu set -eu
uname -a uname -a
python3 -V python3 -V

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -eu set -eu
echo "----- install prerequisite packages -----" echo "----- install prerequisite packages -----"
apk update --quiet apk update --quiet

View File

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/bash
set -eu set -eu
echo "----- install prerequisite packages -----" echo "----- install prerequisite packages -----"
pacman -Syy --noconfirm pacman -Syy --noconfirm
pacman -Sy --noconfirm curl icu base-devel libxml2 python3 glibc pacman -Sy --noconfirm bash curl icu base-devel libxml2 python3 glibc
curl -O https://bootstrap.pypa.io/get-pip.py curl -O https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py python3 get-pip.py

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/bash
set -eu set -eu
# Install packages # Install packages
pacman -Syy --noconfirm pacman -Syy --noconfirm
pacman -Sy --noconfirm python3 python-pip pacman -Sy --noconfirm bash python3 python-pip
python3 -m pip install --upgrade pip --quiet python3 -m pip install --upgrade pip --quiet

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/bash
set -eu set -eu
# Install packages # Install packages
yum install -y python3-devel python3-pip yum install -y bash python3-devel python3-pip
python3 -m pip install --upgrade pip --quiet python3 -m pip install --upgrade pip --quiet

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/bash
set -eu set -eu
# Install packages # Install packages
apt update apt update
apt -y install curl sudo libcurl4-openssl-dev libxml2-utils libxml2-dev libssl-dev python3 python3-pip apt -y install bash curl sudo libcurl4-openssl-dev libxml2-utils libxml2-dev libssl-dev python3 python3-pip
python3 -m pip install --upgrade pip --quiet python3 -m pip install --upgrade pip --quiet

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/bash
set -eu set -eu
echo "----- install prerequisite packages -----" echo "----- install prerequisite packages -----"
yum install -y procps gcc libxml2-devel openssl-devel libcurl-devel python3-devel python3-pip yum install -y bash procps gcc libxml2-devel openssl-devel libcurl-devel python3-devel python3-pip
python3 -m pip install --upgrade pip --quiet python3 -m pip install --upgrade pip --quiet

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/bash
set -eu set -eu
sudo apt update sudo apt update
# Install libcurl dev so that hurl can be built dynamically with libcurl # Install libcurl dev so that hurl can be built dynamically with libcurl
sudo apt install libcurl4-openssl-dev libxml2-utils sudo apt install bash libcurl4-openssl-dev libxml2-utils
python3 -m pip install --upgrade pip --quiet python3 -m pip install --upgrade pip --quiet

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
sh rustup.sh -y sh rustup.sh -y

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e
set -u set -u
sudo rm -rf target/debian sudo rm -rf target/debian

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e
set -u set -u

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e
# Get hurl source version # Get hurl source version

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e
echo "----- install deb package -----" echo "----- install deb package -----"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e
echo "----- install generic linux package -----" echo "----- install generic linux package -----"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e
echo "----- install generic macos package -----" echo "----- install generic macos package -----"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e
rm -rf target/man rm -rf target/man

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e
PATH="$HOME"/.cargo/bin:$PATH PATH="$HOME"/.cargo/bin:$PATH

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -eu set -eu
echo "----- Bench suite -----" echo "----- Bench suite -----"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e
"$(dirname "$0")"/test_prerequisites.sh "$(dirname "$0")"/test_prerequisites.sh

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e
echo "----- integration tests -----" echo "----- integration tests -----"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e
echo "----- install servers prerequisites -----" echo "----- install servers prerequisites -----"
pip3 install --requirement bin/requirements-frozen.txt pip3 install --requirement bin/requirements-frozen.txt

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e
echo "----- unit tests -----" echo "----- unit tests -----"
PATH="$HOME"/.cargo/bin:$PATH PATH="$HOME"/.cargo/bin:$PATH