Skip to content

Commit

Permalink
fix(main/just): fix recipe shebangs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomJo2000 committed Nov 16, 2024
1 parent eb7c422 commit 41053ee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/just/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="A handy way to save and run project-specific commands"
TERMUX_PKG_LICENSE="CC0-1.0"
TERMUX_PKG_MAINTAINER="@flipee"
TERMUX_PKG_VERSION="1.36.0"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/casey/just/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=bc2e2ff0268c2818659c524b21663564864b50ba102afb0a44fe73c08cf35ff0
TERMUX_PKG_AUTO_UPDATE=true
Expand Down
13 changes: 13 additions & 0 deletions packages/just/src-shebang.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/shebang.rs b/src/shebang.rs
index 0fc03862..f61546a4 100644
--- a/src/shebang.rs
+++ b/src/shebang.rs
@@ -17,7 +17,7 @@ impl<'line> Shebang<'line> {
.trim()
.splitn(2, [' ', '\t']);

- let interpreter = pieces.next().unwrap_or("");
+ let interpreter = format!("@TERMUX_PREFIX@{}", pieces.next().unwrap_or(""));
let argument = pieces.next();

if interpreter.is_empty() {

0 comments on commit 41053ee

Please sign in to comment.