From bad13bffd07d57acd40a025e19b74c13a547469f Mon Sep 17 00:00:00 2001 From: Dan Bornstein Date: Tue, 5 Dec 2023 14:52:31 -0800 Subject: [PATCH] Allow there _not_ to be scripts. --- scripts/lib/bashy-node/node-project/build-main-module | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/lib/bashy-node/node-project/build-main-module b/scripts/lib/bashy-node/node-project/build-main-module index 84f951c..9f96872 100755 --- a/scripts/lib/bashy-node/node-project/build-main-module +++ b/scripts/lib/bashy-node/node-project/build-main-module @@ -210,6 +210,10 @@ function copy-scripts { local srcDir="$1/bin" local destDir="$2/bin" + if [[ ! -d "${srcDir}" ]]; then + return + fi + # Get a JSON array of all the files. local fileList fileList="$(lib ls-files --output=array --cd="${srcDir}" --depth=1)" \