Add "set -e" to chroot-scripts for better error-handling

This commit is contained in:
Fierelier 2022-09-26 11:08:12 +02:00
parent b742a52d3f
commit 6583b436f0
5 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
set +e set -e
if [[ -f "/usr/local/bin/xmousepasteblock" ]]; then if [[ -f "/usr/local/bin/xmousepasteblock" ]]; then
exit exit
fi fi

View File

@ -1,3 +1,4 @@
#!/bin/bash #!/bin/bash
set -e
apt -y remove build-essential git pkg-config *-dev apt -y remove build-essential git pkg-config *-dev
apt -y autoremove apt -y autoremove

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
set +e set -e
if [[ -f "/usr/local/bin/ksuperkey" ]]; then if [[ -f "/usr/local/bin/ksuperkey" ]]; then
exit exit
fi fi

View File

@ -1 +1,3 @@
#!/bin/bash
set -e
apt install -y --download-only cryptsetup cryptsetup-initramfs apt install -y --download-only cryptsetup cryptsetup-initramfs

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
set -e
echo "deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main" >>"/etc/apt/sources.list" echo "deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main" >>"/etc/apt/sources.list"
apt -y install dirmngr apt -y install dirmngr
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2667CA5C apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2667CA5C