mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-17 11:05:22 +00:00
shellcheck (#23)
* shellcheck * fix(script): shellcheck and refactor * fix(scripts): rename snake_casing no .sh Follows Google's Shell Style Guide: https://google.github.io/styleguide/shellguide.html Script names must use snake_casing Remove the `.sh` extension on `chmod +x` scripts because the shell interpreter choice is in the shebang. The `.sh` extension is to be maintained for sourced scripts because those are not stand-alone executables: ```sh . sourced_script.sh # . sourcing source sourced_script.sh # alternate syntax ``` * decomp * Stay CI Co-authored-by: Léa Gris <[email protected]> Co-authored-by: Martin Robertz <[email protected]>
This commit is contained in:
6 files changed
+66
-46
No files matched your search
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if ! git diff --name-only HEAD HEAD~1 | grep -qF 'build.gradle'; then
|
||||
new_version="$(date +%s)"
|
||||
sed --in-place "s!^//version:.*!//version: $new_version!g" build.gradle
|
||||
git add build.gradle
|
||||
git commit -m "[ci skip] update build script version to $new_version"
|
||||
git push
|
||||
printf 'Updated buildscript version to %s\n' "$new_version"
|
||||
else
|
||||
printf 'Ignored buildscript version update: no changes detected\n'
|
||||
fi
|
||||
Reference in new issue
Block a user