From a410e2962a5ffdb0b6f0d85161dbb0357363a414 Mon Sep 17 00:00:00 2001 From: Koen J Date: Mon, 20 Jan 2025 14:04:55 +0100 Subject: [PATCH] Only take one line for signing. --- sign-all-sources.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sign-all-sources.sh b/sign-all-sources.sh index 3a6d783f..e725c588 100755 --- a/sign-all-sources.sh +++ b/sign-all-sources.sh @@ -6,8 +6,8 @@ sign_scripts() { local plugin_dir=$1 if [[ -d "$plugin_dir" ]]; then - script_file=$(find "$plugin_dir" -maxdepth 2 -name '*Script.js') - config_file=$(find "$plugin_dir" -maxdepth 2 -name '*Config.json') + script_file=$(find "$plugin_dir" -maxdepth 2 -name '*Script.js' | head -n 1) + config_file=$(find "$plugin_dir" -maxdepth 2 -name '*Config.json' | head -n 1) sign_script="$plugin_dir/sign.sh" if [[ -f "$sign_script" && -n "$script_file" && -n "$config_file" ]]; then