Skip to content

Commit

Permalink
Check existance of local install script
Browse files Browse the repository at this point in the history
  • Loading branch information
mono0x committed Jun 1, 2024
1 parent b882bde commit 587b5e3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ else
deno="$DENO_INSTALL/bin/deno"
fi

prefix="."
[ "${GITHUB_ACTIONS:-}" = "true" ] && prefix="https://raw.githubusercontent.com/mono0x/dotfiles"
prefix="$(dirname "$0")"
if [ ! -f "$prefix/install/main.ts" ]
then
prefix="https://raw.githubusercontent.com/mono0x/dotfiles"
fi

exec "$deno" run --config "$prefix/deno.jsonc" --lock "$prefix/deno.lock" -A "$prefix/install/main.ts"

0 comments on commit 587b5e3

Please sign in to comment.