Skip to content

Commit

Permalink
Add set -e
Browse files Browse the repository at this point in the history
Signed-off-by: Tommy <[email protected]>
  • Loading branch information
TommyTran732 committed Jul 2, 2024
1 parent 889e82a commit e810a7d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dom0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# License for the specific language governing permissions and limitations under
# the License.

set -e

# Enabling discard and fstrim
sudo sed -i 's/issue_discards = 0/issue_discards = 1/g' /etc/lvm/lvm.conf
sudo systemctl enable --now fstrim.timer
Expand Down
2 changes: 2 additions & 0 deletions fedora-minimal/fedora-minimal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# License for the specific language governing permissions and limitations under
# the License.

set -e

unpriv(){
sudo -u nobody "$@"
}
Expand Down
2 changes: 2 additions & 0 deletions fedora-minimal/sys-net.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# License for the specific language governing permissions and limitations under
# the License.

set -e

# 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

Expand Down
2 changes: 2 additions & 0 deletions whonix/whonix-gw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# License for the specific language governing permissions and limitations under
# the License.

set -e

unpriv(){
sudo -u nobody "$@"
}
Expand Down
2 changes: 2 additions & 0 deletions whonix/whonix-ws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# License for the specific language governing permissions and limitations under
# the License.

set -e

unpriv(){
sudo -u nobody "$@"
}
Expand Down

0 comments on commit e810a7d

Please sign in to comment.