Bash error handling

This commit is contained in:
RealStickman 2020-10-12 07:15:20 +02:00
parent c645e81256
commit 80e04e0b70
9 changed files with 21 additions and 2 deletions

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -euo pipefail
#DO NOT MAKE CHANGES TO THE INSTALL SCRIPT HERE. USE arcolinux-config.sh IN ~/scripts FOR THAT
#change to home (does not show in terminal)

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -euo pipefail
#ANY CHANGES TO THE INSTALLATION PROCEDURE SHOULD BE MADE HERE
#change to home (does not show in terminal)

View File

@ -1,4 +1,6 @@
#!/bin/bash
set -euo pipefail
rm -rvf $HOME/.local/share/Trash
rm -rvf /mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/.Trash-1000/
rm -rvf /mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/.Trash-1000/

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -euo pipefail
# You can call this script like this:
# $./dunst-backlight.sh up
# $./dunst-backlight.sh down

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -euo pipefail
# You can call this script like this:
# $./dunst-volume.sh up
# $./dunst-volume.sh down

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -euo pipefail
cd "$HOME/GitProjects/config" || exit
git pull

View File

@ -1,8 +1,11 @@
#!/bin/bash
set -euo pipefail
shopt -s nullglob
for g in /sys/kernel/iommu_groups/*; do
echo "IOMMU Group ${g##*/}:"
for d in $g/devices/*; do
echo -e "\t$(lspci -nns ${d##*/})"
done;
done;
done;

View File

@ -1,4 +1,6 @@
#!/bin/bash
set -euo pipefail
# redetects PulseAudio outputs
pacmd unload-module module-udev-detect && pacmd load-module module-udev-detect

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -euo pipefail
# redetects PulseAudio outputs
pacmd unload-module module-udev-detect && pacmd load-module module-udev-detect