ㅅㄷㄴㅅ
This commit is contained in:
parent
7328ee20bd
commit
0c81830e1a
1 changed files with 32 additions and 0 deletions
32
assets/script/shell/check_package_update.sh
Normal file
32
assets/script/shell/check_package_update.sh
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
echo $PATH
|
||||
|
||||
echo "Current workspace: ${PWD}"
|
||||
#cd ../dart_framework && git pull origin master
|
||||
#cd ../${JOB_NAME}
|
||||
|
||||
#bash ./assets/script/shell/check_rev.sh
|
||||
|
||||
## 현재 리비전 체크
|
||||
REV_OLD=`cat git_rev.txt`
|
||||
git rev-list --all HEAD --all --count > git_rev.txt
|
||||
REV_NEW=`cat git_rev.txt`
|
||||
|
||||
echo "$REV_OLD"
|
||||
echo "$REV_NEW"
|
||||
|
||||
RESULT=FALSE
|
||||
if [ ${REV_OLD} -ne ${REV_NEW} ] ; then
|
||||
RESULT=TRUE
|
||||
fi
|
||||
|
||||
#echo $RESULT > result.txt
|
||||
#RESULT=$(head -n 1 result.txt)
|
||||
|
||||
if [ ${RESULT} == "TRUE" ] ; then
|
||||
echo "Build Start!"
|
||||
flutter clean
|
||||
flutter packages upgrade
|
||||
flutter pub get
|
||||
flutter pub run build_runner build --delete-conflicting-outputs
|
||||
echo "Build End!"
|
||||
fi
|
||||
Loading…
Reference in a new issue