Skip to content

Commit

Permalink
v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Apr 18, 2021
1 parent 2279b58 commit db665b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 5,7 @@ Run Deno X module without installation.
### Installation

```bash
deno install -A -f -n land https://deno.land/x/[email protected].0/cli.ts
deno install -A -f -n land https://deno.land/x/[email protected].1/cli.ts
```

### Usage
Expand Down
8 changes: 6 additions & 2 deletions cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 124,14 @@ async function main() {
const url = `https://cdn.deno.land/${moduleName}/versions/${version}/raw${permissionsFile.path}`
const resp3 = await fetch(url)
if (resp3.status === 200) {
const list = await resp3.text()
permissionFlags.push(...list.split('\n').map(l => l.trim()).filter(Boolean))
const list = (await resp3.text()).split('\n').map(l => l.trim()).filter(Boolean).filter(l => !l.startsWith('#'))
permissionFlags.push(...list)
console.log(dim(`Load ${permissionsFile.path.slice(1)}: ${list.join(' ')}`))
}
}
if (permissionFlags.length > 0 && !permissionFlags.includes('--prompt')) {
permissionFlags.push('--prompt')
}
}
if (permissionFlags.length === 0) {
permissionFlags.push('--prompt')
Expand Down
2 changes: 1 addition & 1 deletion version.ts
Original file line number Diff line number Diff line change
@@ -1 1 @@
export const VERSION = "0.4.0"
export const VERSION = "0.4.1"

0 comments on commit db665b6

Please sign in to comment.