mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
ci: use shebang with better portability in shell scripts, format shell scripts (#21605)
This commit is contained in:
parent
a4afcbaa5c
commit
5f83a4d110
3 changed files with 17 additions and 17 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
for f in examples/sokol/*/ ; do
|
for f in examples/sokol/*/ ; do
|
||||||
echo "compiling shaders for $f ...";
|
echo "compiling shaders for $f ...";
|
||||||
time ./v shader $f;
|
time ./v shader $f;
|
||||||
echo "done";
|
echo "done";
|
||||||
done;
|
done;
|
||||||
|
|
4
.github/workflows/compile_v_with_vtcc.sh
vendored
4
.github/workflows/compile_v_with_vtcc.sh
vendored
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
function show() {
|
function show() {
|
||||||
printf "\u001b[35m$1\u001b[0m\n"
|
printf "\u001b[35m$1\u001b[0m\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
show "Prepare"
|
show "Prepare"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue