Skip to content

Commit

Permalink
fix file not found
Browse files Browse the repository at this point in the history
  • Loading branch information
phorcys committed Oct 14, 2018
1 parent 8e081b8 commit 356ceb5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .travis/deploy-linux.bash
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,16 @@ do
modversion=`echo $modfullname |sed -e "s/.*-//g"`
lastcommit=`git log ../../${modname}| head -n 1 | awk '{print $2}'`
lastcommittime=`git log ../../${modname}| head -n 3 |tail -n 1| sed -e "s/Date:\s*//g"`
lastbuildcommit=`cat ${HOME}/.taiwu/${modname}.commit`
lastbuildcommittime=`cat ${HOME}/.taiwu/${modname}.commit.time`
lastbuildcommit=""
if [ -f ${HOME}/.taiwu/${modname}.commit ]
then
lastbuildcommit=`cat ${HOME}/.taiwu/${modname}.commit` | true
fi
lastbuildcommittime=
if [ -f ${HOME}/.taiwu/${modname}.commit.time ]
then
lastbuildcommittime=`cat ${HOME}/.taiwu/${modname}.commit.time` | true
fi

echo "Processing Mod $modname commit $lastcommit , last build commit $lastbuildcommit \n last commit time: $lastcommittime last build commit time : $lastbuildcommittime"

Expand All @@ -25,8 +33,8 @@ do
# mods that need publish and regenerate json
python ../../.travis/addnewrelease.py ${HOME}/.taiwu/${modname}.json "${modname}" "${modversion}" "${modurl}"

\cp -Rf ${modzip} ${HOME}/.taiwu/Mods_publish/
\cp -Rf ${HOME}/.taiwu/${modname}.json ${HOME}/.taiwu/Mods_publish/
\cp -Rf ${modzip} ${HOME}/.taiwu/Mods_publish/ | true
\cp -Rf ${HOME}/.taiwu/${modname}.json ${HOME}/.taiwu/Mods_publish/ | true
echo "Published Mod ${modfullname} to Github Release page, Release tag : ${COMM_TAG}"
fi
\cp -Rf ${HOME}/.taiwu/Mods_publish/ ../Mods_publish/
Expand Down

0 comments on commit 356ceb5

Please sign in to comment.