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
@ -6,4 +7,4 @@ brew doctor
# Install some default tools # Install some default tools
brew update brew update
brew install tmux mosh eza lsd ffmpeg aria2 bat dog f3 gping btop imagemagick iperf3 ncdu p7zip pigz rclone rsync screen thefuck tldr unzip yt-dlp zstd brew install tmux mosh eza lsd ffmpeg aria2 bat dog f3 gping btop imagemagick iperf3 ncdu p7zip pigz rclone rsync screen thefuck tldr unzip yt-dlp zstd
brew install --cask balenaetcher cryptomator iina handbrake imageoptim libreoffice losslesscut mgba mkvtoolnix nextcloud obs rar retroarch-metal secretive ultimaker-cura vlc vscodium zed signal transmission brew install --cask balenaetcher cryptomator iina handbrake imageoptim libreoffice losslesscut mgba mkvtoolnix nextcloud obs rar retroarch-metal secretive ultimaker-cura vlc vscodium zed signal transmission

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
@ -9,4 +10,4 @@ echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] https://ap
# Update and install syncthing: # Update and install syncthing:
sudo apt-get update sudo apt-get update
sudo apt-get install syncthing sudo apt-get install syncthing