From 9b3677b7f2c2941a5f5053c8298cf34bf05fc6e4 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Sun, 30 Apr 2023 21:00:46 +0200 Subject: [PATCH] archive-fonts: Fail if something is amiss [why] If we do not have a license file an error will be output, but the complete script will continue and return success. [how] Set mode to exit on error. Signed-off-by: Fini Jastrow --- bin/scripts/archive-fonts.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/scripts/archive-fonts.sh b/bin/scripts/archive-fonts.sh index 5f4ae784a4..891ab11f39 100755 --- a/bin/scripts/archive-fonts.sh +++ b/bin/scripts/archive-fonts.sh @@ -11,6 +11,8 @@ # Example with same font names for different paths # ./archive-fonts gohu +set -e + LINE_PREFIX="# [Nerd Fonts] " scripts_root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/" parent_dir="${PWD}/../../"