Skip to content

Commit 9047e03

Browse files
committed
justfile - deterministic bash execution
1 parent b66f54e commit 9047e03

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

justfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ test_source_dir := "src/test/python"
2727

2828
# commands
2929

30+
bash := "bash"
3031
bazel := "bazel"
3132
cargo := "RUSTFLAGS='-C target-cpu=native' cargo"
3233
grep := "grep"
@@ -65,7 +66,7 @@ vim-file-run-dev file *type:
6566
LOGLEVEL="DEBUG" {{ python_debug }} "{{ file }}"
6667
;;
6768
"sh")
68-
DEBUG=1 "{{ file }}"
69+
DEBUG=1 {{ bash }} "{{ file }}"
6970
;;
7071
"julia")
7172
JULIA_DEBUG="{{ file_stem(file) }}" {{ julia }} "{{ file }}"
@@ -88,7 +89,7 @@ vim-file-run file *type:
8889
{{ python }} "{{ file }}"
8990
;;
9091
"sh")
91-
"{{ file }}"
92+
{{ bash }} "{{ file }}"
9293
;;
9394
"julia")
9495
{{ julia }} "{{ file }}"
@@ -185,7 +186,7 @@ java year day:
185186
# Run bash
186187
[group("bash")]
187188
bash year day:
188-
@./$({{ python }} -c 'year={{ year }};day={{ day }};print(f"{{ bash_source_dir }}/AoC{year}_{day:0>2}.sh")')
189+
@{{ bash }} $({{ python }} -c 'year={{ year }};day={{ day }};print(f"{{ bash_source_dir }}/AoC{year}_{day:0>2}.sh")')
189190

190191
# Run c++
191192
[group("c++")]

0 commit comments

Comments
 (0)