Skip to content

Commit

Permalink
handle PROJECTS=" "
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider committed Apr 24, 2023
1 parent 41c90f8 commit 587a59c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions actions/get-platform/get-platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ args:
- --allow-write
---*/

import { parseFlags } from "cliffy/flags/mod.ts"
import { parse } from "utils/pkg.ts"
import { panic } from "utils"
import tea_init from "../../lib/init().ts"
Expand All @@ -25,7 +24,7 @@ import usePantry from "../../lib/usePantry.ts"

tea_init()

const packages = Deno.env.get("PROJECTS")?.trim().split(" ").map(parse)
const packages = Deno.env.get("PROJECTS")?.trim().split(" ").filter(x => x).map(parse)

type Output = {
os: OS,
Expand Down

0 comments on commit 587a59c

Please sign in to comment.