mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
Only take one line for signing.
This commit is contained in:
+2
-2
@@ -6,8 +6,8 @@ sign_scripts() {
|
|||||||
local plugin_dir=$1
|
local plugin_dir=$1
|
||||||
|
|
||||||
if [[ -d "$plugin_dir" ]]; then
|
if [[ -d "$plugin_dir" ]]; then
|
||||||
script_file=$(find "$plugin_dir" -maxdepth 2 -name '*Script.js')
|
script_file=$(find "$plugin_dir" -maxdepth 2 -name '*Script.js' | head -n 1)
|
||||||
config_file=$(find "$plugin_dir" -maxdepth 2 -name '*Config.json')
|
config_file=$(find "$plugin_dir" -maxdepth 2 -name '*Config.json' | head -n 1)
|
||||||
sign_script="$plugin_dir/sign.sh"
|
sign_script="$plugin_dir/sign.sh"
|
||||||
|
|
||||||
if [[ -f "$sign_script" && -n "$script_file" && -n "$config_file" ]]; then
|
if [[ -f "$sign_script" && -n "$script_file" && -n "$config_file" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user