From 95109466e876d72edc3d59b0052a7d65d5a23709 Mon Sep 17 00:00:00 2001 From: fiftydinar <65243233+fiftydinar@users.noreply.github.com> Date: Tue, 23 Jul 2024 14:12:45 +0200 Subject: [PATCH] fix(files): Error-out & fail the build when there's no file/directory supplied in recipe --- modules/files/files.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/files/files.sh b/modules/files/files.sh index cbb7107..105ff7b 100644 --- a/modules/files/files.sh +++ b/modules/files/files.sh @@ -59,6 +59,10 @@ if [[ ${#FILES[@]} -gt 0 ]]; then exit 1 fi done +else + echo "ERROR: You did not add any file or folder to the module recipe for copying," + echo " Please assure that you performed this operation correctly" + exit 1 fi shopt -u dotglob