Move to bash and add railguards to scripts

This commit is contained in:
Jan Jastrow 2024-08-27 20:40:57 +02:00
parent d76591cf66
commit f0d81c7581
5 changed files with 13 additions and 8 deletions

View File

@ -1,4 +1,5 @@
#!/bin/zsh #!/usr/bin/env zsh
set -euo pipefail
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew doctor brew doctor

View File

@ -1,4 +1,5 @@
#!/bin/sh #!/usr/bin/env bash
set -euo pipefail
# Add Docker's official GPG key: # Add Docker's official GPG key:
sudo apt-get update sudo apt-get update

View File

@ -1,3 +1,4 @@
#!/bin/sh #!/usr/bin/env bash
set -euo pipefail
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

View File

@ -1,4 +1,5 @@
#!/bin/sh #!/usr/bin/env bash
set -euo pipefail
sudo mkdir -p /etc/apt/keyrings sudo mkdir -p /etc/apt/keyrings
wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | sudo gpg --dearmor -o /etc/apt/keyrings/gierens.gpg wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | sudo gpg --dearmor -o /etc/apt/keyrings/gierens.gpg

View File

@ -1,4 +1,5 @@
#!/bin/sh #!/usr/bin/env bash
set -euo pipefail
# Add the release PGP keys: # Add the release PGP keys:
sudo mkdir -p /etc/apt/keyrings sudo mkdir -p /etc/apt/keyrings