Skip to content

Commit

Permalink
build: fix unbound variable in bundle size analyze script (#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 authored Nov 20, 2024
1 parent 99b5931 commit 570d9c0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions projects/ngx-meta/bundle-size/analyze.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#!/usr/bin/env sh
# Analyzes bundle size of the library when bundled inside an app
# Using source maps & thanks to `source-map-explorer`
set -eu

cd "$(dirname "$0")" || exit 1
set -e

app_name="$1"
[ -z "$app_name" ] && echo "❌ App name not specified" >&2 && exit 1
export_format_arg="$2"

set -u
cd "$(dirname "$0")" || exit 1

. "./utils.sh"

app_browser_dist_dir="../example-apps/apps/$app_name/dist/$app_name/browser"
Expand All @@ -28,7 +31,6 @@ sme_command() {
}

echo "⚙️ Analyzing ${app_name} main bundle" >&2
export_format_arg="$2"
if [ -z "$export_format_arg" ]; then
sme_command
exit
Expand Down

0 comments on commit 570d9c0

Please sign in to comment.