mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-21 06:11:31 +00:00
Show warning when we modify main library and display which files were modded
This commit is contained in:
parent
f8982e1e7e
commit
4e76ed6c9a
1 changed files with 6 additions and 3 deletions
|
@ -76,8 +76,11 @@ apt-get -qq -y --no-install-recommends install git
|
|||
if [[ ! -d $SRC/lib ]]; then
|
||||
git clone https://github.com/igorpecovnik/lib
|
||||
fi
|
||||
cd $SRC/lib; git pull; git checkout ${LIB_TAG:- master}
|
||||
|
||||
cd $SRC/lib; git pull >/dev/null 2>&1
|
||||
CHANGED_FILES=$(git checkout ${LIB_TAG:- master} | grep -P '^M' | awk '{print $2}' | tr '\n' ' ')
|
||||
if [[ $? == 0 ]]; then
|
||||
echo -e "[\e[0;35m warn \x1B[0m] Can't update [lib/] since you made changes to: [\e[0;33m ${CHANGED_FILES::-1} \x1B[0m]"
|
||||
fi
|
||||
#--------------------------------------------------------------------------------------------------------------------------------
|
||||
# Do we need to build all images
|
||||
#--------------------------------------------------------------------------------------------------------------------------------
|
||||
|
@ -89,4 +92,4 @@ fi
|
|||
|
||||
# If you are committing new version of this file, increment VERSION
|
||||
# Only integers are supported
|
||||
# VERSION=9
|
||||
# VERSION=10
|
||||
|
|
Loading…
Add table
Reference in a new issue