Skip to content

Commit

Permalink
fix: use plain sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Nov 6, 2024
1 parent b07d37a commit 6fb4851
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/hip-peaches-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"kopflos": patch
---

Do not require bash to be installed
4 changes: 2 additions & 2 deletions packages/cli/bin/kopflos.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env bash
#!/usr/bin/env sh

# find JS entrypoint
kopflos=$(node -e "console.log(require.resolve('kopflos/bin/index.js'))" 2> /dev/null)

# if ts-node exists in path
if command -v ts-node &> /dev/null
if command -v ts-node > /dev/null 2>&1
then
node --loader ts-node/esm/transpile-only --no-warnings "$kopflos" "$@"
else
Expand Down

0 comments on commit 6fb4851

Please sign in to comment.