Skip to content

Commit cd5335f

Browse files
committed
fix: find plugin bundle by target name instead of globbing
1 parent 961cb58 commit cd5335f

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

scripts/build-plugin.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,11 @@ build_plugin() {
4545
exit 1
4646
fi
4747

48-
# Find the built plugin bundle
49-
local plugin_bundle
50-
plugin_bundle=$(find "$build_dir" -name "*.tableplugin" -maxdepth 1 | head -1)
48+
# Find the built plugin bundle by target name
49+
local plugin_bundle="$build_dir/${PLUGIN_TARGET}.tableplugin"
5150

52-
if [ -z "$plugin_bundle" ]; then
53-
echo "FATAL: No .tableplugin bundle found in $build_dir" >&2
51+
if [ ! -d "$plugin_bundle" ]; then
52+
echo "FATAL: Plugin bundle not found at $plugin_bundle" >&2
5453
exit 1
5554
fi
5655

0 commit comments

Comments
 (0)