Add set -e (exit on error)

This commit is contained in:
askiiart 2023-08-21 13:13:13 -05:00
parent eab0de4e61
commit 8256fa0c71
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,6 @@
#!/bin/bash
# Exit if there's an error
set -e
# Modify constants as needed
GITEA_URL="https://git.askiiart.net"
REAL_NAME="askiiart"

View file

@ -1,3 +1,6 @@
#!/bin/bash
# Exit if there's an error
set -e
declare -A osInfo;
osInfo[/etc/redhat-release]=yum
osInfo[/etc/arch-release]=pacman