Skip to content

Commit 352b816

Browse files
committed
Fix (justfile): Make Justfile MacOS compatible
Fixes #394
1 parent 1c00c01 commit 352b816

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Justfile

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ default:
1515
# Check Just Syntax
1616
[group('Just')]
1717
check:
18-
#!/usr/bin/bash
18+
#!/usr/bin/env bash
1919
find . -type f -name "*.just" | while read -r file; do
2020
echo "Checking syntax: $file"
2121
just --unstable --fmt --check -f $file
@@ -26,7 +26,7 @@ check:
2626
# Fix Just Syntax
2727
[group('Just')]
2828
fix:
29-
#!/usr/bin/bash
29+
#!/usr/bin/env bash
3030
find . -type f -name "*.just" | while read -r file; do
3131
echo "Checking syntax: $file"
3232
just --unstable --fmt -f $file
@@ -37,7 +37,7 @@ fix:
3737
# Clean Repo
3838
[group('Utility')]
3939
clean:
40-
#!/usr/bin/bash
40+
#!/usr/bin/env bash
4141
set -eoux pipefail
4242
touch _build
4343
find *_build* -exec rm -rf {} \;
@@ -55,7 +55,7 @@ sudo-clean:
5555
[group('Utility')]
5656
[private]
5757
sudoif command *args:
58-
#!/usr/bin/bash
58+
#!/usr/bin/env bash
5959
function sudoif(){
6060
if [[ "${UID}" -eq 0 ]]; then
6161
"$@"
@@ -141,7 +141,7 @@ build $target_image=image_name $tag=default_tag $dx="0" $hwe="0" $gdx="0":
141141
# 4. If the image is not found, pull it from the remote repository into reootful podman.
142142

143143
_rootful_load_image $target_image=image_name $tag=default_tag:
144-
#!/usr/bin/bash
144+
#!/usr/bin/env bash
145145
set -eoux pipefail
146146

147147
# Check if already running as root or under sudo
@@ -251,7 +251,7 @@ rebuild-iso $target_image=("localhost/" + image_name) $tag=default_tag: && (_reb
251251

252252
# Run a virtual machine with the specified image type and configuration
253253
_run-vm $target_image $tag $type $config:
254-
#!/usr/bin/bash
254+
#!/usr/bin/env bash
255255
set -eoux pipefail
256256

257257
# Determine the image file based on the type

0 commit comments

Comments
 (0)