Make the scripts runnable from anywhere

This commit is contained in:
marc0246 2025-03-23 21:24:33 +01:00
parent 71ba4814a8
commit dae030e765
No known key found for this signature in database
GPG Key ID: 7C39D3F6447830F2
2 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ foreach ($arg in $args) {
}
}
cd "$PSScriptRoot"
cargo build --bins
foreach ($example in Get-ChildItem -Directory -Name) {

View File

@ -23,6 +23,7 @@ else
sh_cmd='sh'
fi
cd "$(dirname $0)"
cargo build --bins
ls -F | grep '/$' | sed 's|/$||' | xargs -E '' -I {} $sh_cmd -c '
# Continue without printing anything if the example is excluded in the manifest.