agent-flutter 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-flutter",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Portable Flutter skill/rule pack initializer for multiple AI IDEs.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,6 +2,11 @@
2
2
  set -Eeuo pipefail
3
3
  trap 'echo "Error at line $LINENO: $BASH_COMMAND" >&2' ERR
4
4
 
5
+ if [[ -z "${BASH_VERSION:-}" ]]; then
6
+ echo "Error: Please run this script with bash." >&2
7
+ exit 1
8
+ fi
9
+
5
10
  usage() {
6
11
  cat <<'EOF'
7
12
  Bootstrap a new Flutter template project (script-first workflow).
@@ -178,10 +183,10 @@ discover_working_fvm() {
178
183
  fi
179
184
 
180
185
  if command -v which >/dev/null 2>&1; then
181
- while IFS= read -r candidate; do
186
+ for candidate in $(which -a fvm 2>/dev/null); do
182
187
  [[ -n "$candidate" ]] || continue
183
188
  candidates+=("$candidate")
184
- done < <(which -a fvm 2>/dev/null | awk '!seen[$0]++')
189
+ done
185
190
  fi
186
191
 
187
192
  if [[ -x "$pub_cache_fvm" ]]; then