scripts: pixel: Make build-desc-fingerprint.sh commit changes
Tests: cd lineage/scripts/pixel && ./build-desc-fingerprint.sh coral flame Notes: No additional issues added in `shellcheck` Change-Id: I1810ad996d727337b73c6959aaa37bdcaf0d5e5b
This commit is contained in:
committed by
Michael Bestas
parent
a6ee1c2396
commit
7c7fa70ddb
@@ -58,6 +58,7 @@ main() {
|
||||
local ds="${devices[@]}"
|
||||
fi
|
||||
|
||||
# Update the makefiles
|
||||
for d in ${ds}; do
|
||||
(
|
||||
local dv="${vars_path}/${d}"
|
||||
@@ -67,6 +68,18 @@ main() {
|
||||
sed -i "s/${prev_build_number}/${build_number}/g" "${mk}"
|
||||
)
|
||||
done
|
||||
|
||||
# Commit the changes
|
||||
for d in ${ds}; do
|
||||
(
|
||||
local dv="${vars_path}/${d}"
|
||||
source "${dv}"
|
||||
cd "${top}/device/google/${d}"
|
||||
if [[ -n "$(git status --porcelain)" ]]; then
|
||||
git commit -a -m "Update fingerprint/build description from ${build_id}"
|
||||
fi
|
||||
)
|
||||
done
|
||||
}
|
||||
|
||||
### RUN PROGRAM ###
|
||||
|
||||
Reference in New Issue
Block a user