This commit is contained in:
parent
1a542db826
commit
5741a21938
4
sync.sh
4
sync.sh
@ -4,7 +4,7 @@ TOPDIR=$(pwd)
|
|||||||
changelog=${TOPDIR}/changelog-${device}-${version}.md
|
changelog=${TOPDIR}/changelog-${device}-${version}.md
|
||||||
|
|
||||||
declare -A before
|
declare -A before
|
||||||
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse HEAD)"'))
|
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse --short HEAD)"'))
|
||||||
for i in "${tmp[@]}"; do
|
for i in "${tmp[@]}"; do
|
||||||
IFS=: read -r folder commit <<<"${i}"
|
IFS=: read -r folder commit <<<"${i}"
|
||||||
before[${folder}]=${commit}
|
before[${folder}]=${commit}
|
||||||
@ -14,7 +14,7 @@ repo sync -q -c -j 6 --fail-fast --force-sync --no-tags
|
|||||||
|
|
||||||
echo -e "# Build $(date '+%Y-%m-%d %H:%M:%S') UTC\n" >>"${changelog}"
|
echo -e "# Build $(date '+%Y-%m-%d %H:%M:%S') UTC\n" >>"${changelog}"
|
||||||
|
|
||||||
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse HEAD)"'))
|
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse --short HEAD)"'))
|
||||||
for i in "${tmp[@]}"; do
|
for i in "${tmp[@]}"; do
|
||||||
IFS=: read -r folder commit <<<"${i}"
|
IFS=: read -r folder commit <<<"${i}"
|
||||||
if [[ "${folder}" != lineage/* && "${before[${folder}]}" != "${commit}" ]]; then
|
if [[ "${folder}" != lineage/* && "${before[${folder}]}" != "${commit}" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user