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)" \