From 14fa0d89e1140000bfc7884d6daa6612ca83fe02 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sat, 20 Jul 2024 18:20:34 -0700 Subject: [PATCH] Add set -u Signed-off-by: Tommy --- debian-gnome/debian-gnome.sh | 2 +- debian-gnome/lokinet.sh | 2 +- fedora-gnome/fedora-gnome.sh | 2 +- fedora-gnome/ivpn.sh | 2 +- fedora-gnome/media.sh | 2 +- fedora-gnome/microsoft-edge.sh | 2 +- fedora-gnome/mullvad.sh | 2 +- fedora-gnome/sys-usb.sh | 2 +- fedora-minimal/fedora-minimal.sh | 2 +- fedora-minimal/sys-net.sh | 2 +- whonix/whonix-gw.sh | 2 +- whonix/whonix-ws.sh | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/debian-gnome/debian-gnome.sh b/debian-gnome/debian-gnome.sh index c0a146f..715622c 100644 --- a/debian-gnome/debian-gnome.sh +++ b/debian-gnome/debian-gnome.sh @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations under # the License. -set -e +set -eu unpriv(){ sudo -u nobody "$@" diff --git a/debian-gnome/lokinet.sh b/debian-gnome/lokinet.sh index 54d4bb8..acbe534 100644 --- a/debian-gnome/lokinet.sh +++ b/debian-gnome/lokinet.sh @@ -1,6 +1,6 @@ #!/bin/sh -set -e +set -eu unpriv(){ sudo -u nobody "$@" diff --git a/fedora-gnome/fedora-gnome.sh b/fedora-gnome/fedora-gnome.sh index 6a1a291..b51f5cb 100644 --- a/fedora-gnome/fedora-gnome.sh +++ b/fedora-gnome/fedora-gnome.sh @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations under # the License. -set -e +set -eu unpriv(){ sudo -u nobody "$@" diff --git a/fedora-gnome/ivpn.sh b/fedora-gnome/ivpn.sh index 754ad3c..bb3fe1d 100644 --- a/fedora-gnome/ivpn.sh +++ b/fedora-gnome/ivpn.sh @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations under # the License. -set -e +set -eu unpriv(){ sudo -u nobody "$@" diff --git a/fedora-gnome/media.sh b/fedora-gnome/media.sh index 3d30408..7d9c69e 100644 --- a/fedora-gnome/media.sh +++ b/fedora-gnome/media.sh @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations under # the License. -set -e +set -eu sudo dnf install -y https://github.com/manga-download/hakuneko/releases/download/nightly-20200705.1/hakuneko-desktop_8.3.4_linux_amd64.rpm sudo dnf config-manager --enable fedora-cisco-openh264 rpmfusion-free rpmfusion-free-updates rpmfusion-nonfree rpmfusion-nonfree-updates diff --git a/fedora-gnome/microsoft-edge.sh b/fedora-gnome/microsoft-edge.sh index f1a0556..248f1c3 100644 --- a/fedora-gnome/microsoft-edge.sh +++ b/fedora-gnome/microsoft-edge.sh @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations under # the License. -set -e +set -eu umask 022 diff --git a/fedora-gnome/mullvad.sh b/fedora-gnome/mullvad.sh index 0da4eb3..90ee551 100644 --- a/fedora-gnome/mullvad.sh +++ b/fedora-gnome/mullvad.sh @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations under # the License. -set -e +set -eu unpriv(){ sudo -u nobody "$@" diff --git a/fedora-gnome/sys-usb.sh b/fedora-gnome/sys-usb.sh index 86763e9..9740e40 100644 --- a/fedora-gnome/sys-usb.sh +++ b/fedora-gnome/sys-usb.sh @@ -14,6 +14,6 @@ # License for the specific language governing permissions and limitations under # the License. -set -e +set -eu sudo dnf install -y android-tools mediawriter gnome-disk-utility diff --git a/fedora-minimal/fedora-minimal.sh b/fedora-minimal/fedora-minimal.sh index 242fa3a..d5dbadc 100644 --- a/fedora-minimal/fedora-minimal.sh +++ b/fedora-minimal/fedora-minimal.sh @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations under # the License. -set -e +set -eu unpriv(){ sudo -u nobody "$@" diff --git a/fedora-minimal/sys-net.sh b/fedora-minimal/sys-net.sh index dbd373c..05df7ce 100644 --- a/fedora-minimal/sys-net.sh +++ b/fedora-minimal/sys-net.sh @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations under # the License. -set -e +set -eu # Install necessary packages dnf install -y @hardware-support arc-theme chrony gnome-keyring NetworkManager-wifi network-manager-applet qubes-core-agent-networking qubes-core-agent-network-manager xfce4-notifyd diff --git a/whonix/whonix-gw.sh b/whonix/whonix-gw.sh index 77f847c..0d73ed2 100644 --- a/whonix/whonix-gw.sh +++ b/whonix/whonix-gw.sh @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations under # the License. -set -e +set -eu unpriv(){ sudo -u nobody "$@" diff --git a/whonix/whonix-ws.sh b/whonix/whonix-ws.sh index b11b29d..844c868 100644 --- a/whonix/whonix-ws.sh +++ b/whonix/whonix-ws.sh @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations under # the License. -set -e +set -eu unpriv(){ sudo -u nobody "$@"