projects
/
openwrt
/
staging
/
thess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed896c3
)
scripts/kernel_bump: Do no run on dirty repositories
author
Olliver Schinagl
<oliver@schinagl.nl>
Mon, 18 Mar 2024 12:09:23 +0000
(13:09 +0100)
committer
Robert Marko
<robimarko@gmail.com>
Fri, 12 Apr 2024 16:20:52 +0000
(18:20 +0200)
We want to avoid starting a process when we know it will fail later.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
scripts/kernel_bump.sh
patch
|
blob
|
history
diff --git
a/scripts/kernel_bump.sh
b/scripts/kernel_bump.sh
index 90e47789c37d374917c7d6458e86be29ac0a1d02..5c147d78a58354417a0c71b395d27a9dea1cae2e 100755
(executable)
--- a/
scripts/kernel_bump.sh
+++ b/
scripts/kernel_bump.sh
@@
-77,6
+77,11
@@
init()
initial_branch="$(git rev-parse --abbrev-ref HEAD)"
initial_commitish="$(git rev-parse HEAD)"
+ if [ -n "$(git status --porcelain | grep -v '^?? .*')" ]; then
+ echo 'Git respository not in a clean state, will not continue.'
+ exit 1
+ fi
+
source_version="${source_version#v}"
target_version="${target_version#v}"