Use bash strict mode in most shell scripts

This commit is contained in:
Ohad Livne 2025-07-12 23:32:33 +03:00
parent 8ca04dec25
commit e0c33b01b7
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
28 changed files with 112 additions and 28 deletions

View file

@ -1,4 +1,7 @@
#! /usr/bin/sh
#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
systemctl --user enable --now syncthing.service

View file

@ -1,4 +1,7 @@
#! /usr/bin/sh
#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
# keep-sorted start
systemctl --user enable --now backup.timer

View file

@ -1,4 +1,7 @@
#! /usr/bin/sh
#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
sudo cp "$(systemd-path user-configuration)"/setup/sources.list.d/tor.sources /etc/apt/sources.list.d/
sudo chmod 644 /etc/apt/sources.list.d/tor.sources

View file

@ -1,3 +1,6 @@
#! /usr/bin/sh
#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
resync-git-sync

View file

@ -1,4 +1,7 @@
#! /usr/bin/sh
#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
curl --location --output-dir /tmp --remote-name https://zoom.us/client/latest/zoom_amd64.deb
sudo apt-get install --no-install-recommends --yes /tmp/zoom_amd64.deb

View file

@ -1,4 +1,7 @@
#! /usr/bin/sh
#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
sudo mkdir --parents "${BORG_REPO}"
sudo chown "${USER}":"${USER}" "${BORG_REPO}"

View file

@ -1,3 +1,6 @@
#! /usr/bin/sh
#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
ghup

View file

@ -1,4 +1,7 @@
#! /usr/bin/sh
#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
projdir="$(systemd-path user)"/Projects
mkdir --parents "${projdir}"

View file

@ -1,3 +1,6 @@
#! /usr/bin/sh
#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
cargo install zellij