Skip to content

Commit

Permalink
Merge pull request #3 from tvnova-ogs/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
adamjosefus authored Sep 2, 2021
2 parents facc22c + 1078283 commit 3ee223f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions bin/compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

deno --unstable compile --allow-all ./mod.ts
Binary file added bin/linux/packager
Binary file not shown.
Binary file modified bin/macos_intel/packager
Binary file not shown.
4 changes: 2 additions & 2 deletions lib/packager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const getArguments = () => {
const args = new Arguments({
name: 'config, c',
description: `Cesta na konfugurační soubor s balíčky. Výchozí hodnota je "./packager.json"`,
processor: (path: string | null): string => {
if (path === null) throw new ValueException(`--config=${path}\nCesta na konfigurační soubor není platná.`);
processor: (path: string | null | false): string => {
if (path === null || path === false) throw new ValueException(`Cesta na konfigurační soubor není platná.`);
path = join(Deno.cwd(), path) as string;

if (existsSync(path) === false) {
Expand Down

0 comments on commit 3ee223f

Please sign in to comment.