mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-18 21:28:02 +00:00
scripts/kernel_bump: Do no run on dirty repositories
We want to avoid starting a process when we know it will fail later. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
This commit is contained in:
parent
ed896c32b0
commit
f9ac106779
@ -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}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user