Scripts: Remove some subshells that ignore errors

This commit is contained in:
Unrud
2022-06-05 14:07:32 +02:00
committed by Matthias Mailänder
parent 1b9a86c0a0
commit e2fd7ce7ed
8 changed files with 16 additions and 8 deletions

View File

@@ -9,7 +9,8 @@
set -o errexit || exit $?
# Set the working directory to the location of this script
cd "$(dirname "$0")" || exit 1
HERE=$(dirname "$0")
cd "${HERE}" || exit 1
# Database does not exist or is older than 30 days.
if [ -z "$(find . -path ./IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP -mtime -30 -print)" ]; then