refactor: move scripts to scripts folder
This is a bit tidier.
This commit is contained in:
parent
95718c754d
commit
9128ddb070
5 changed files with 13 additions and 13 deletions
21
scripts/utils.sh
Executable file
21
scripts/utils.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
log() {
|
||||
echo "$@" >&2
|
||||
}
|
||||
|
||||
warn() {
|
||||
log "\e[0;33m[ERROR]:" "$@" "\e[0m"
|
||||
}
|
||||
|
||||
error() {
|
||||
log "\e[0;31m[WARN]:" "$@" "\e[0m"
|
||||
}
|
||||
|
||||
group() {
|
||||
echo "::group::$1"
|
||||
}
|
||||
|
||||
endgroup() {
|
||||
echo '::endgroup::'
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue