style(script): format the scripts

This commit is contained in:
Orhun Parmaksız 2023-09-13 20:44:23 +03:00
parent 62fa582e40
commit fed4fad7e0
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90
2 changed files with 9 additions and 3 deletions

View File

@ -11,7 +11,7 @@ git init
git remote add origin "$kernel_repo"
git config core.sparseCheckout true
for path in "${sparse_path[@]}"; do
echo "$path" >> .git/info/sparse-checkout
echo "$path" >>.git/info/sparse-checkout
done
git pull --depth 1 origin master
mv $docs_dir/Documentation/* "$docs_dir"

View File

@ -10,9 +10,15 @@ tagger_name="systeroid project"
tagger_email="systeroid@protonmail.com"
signing_key="03598A29AA9D297B8D6D94F1EBEB8A69FDA3720E"
usage() { printf "usage: %s <tag>\n" "${BASH_SOURCE[0]##*/}"; exit 0; }
usage() {
printf "usage: %s <tag>\n" "${BASH_SOURCE[0]##*/}"
exit 0
}
bail() { printf "error: %s\n" "$1" "${@:2}"; exit 1; }
bail() {
printf "error: %s\n" "$1" "${@:2}"
exit 1
}
tag=$1
[ -z "$tag" ] && usage