Skip to content

Commit

Permalink
fix: use plain sh
Browse files Browse the repository at this point in the history
tpluscode committed Nov 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b07d37a commit 6fb4851
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

0 comments on commit 6fb4851

Please sign in to comment.