remove shit, add shit to improve performance

This commit is contained in:
Aria Moradi
2021-01-21 22:39:22 +03:30
parent 466f21a7e8
commit 8b2fd28a54
3 changed files with 18 additions and 6 deletions

View File

@@ -2,21 +2,20 @@
cp ../master/repo/server-r* .
new_build=$(ls | tail -1)
echo "$new_build"
echo "New build file name: $new_build"
diff $new_build server-latest.jar > /dev/null
if [ $? -eq 1 ]; then
echo "copy"
echo "This is different to latest, replace latest."
cp -f $new_build server-latest.jar
else
echo "rm"
echo "This is the same as latest, throw it away."
rm $new_build
fi
echo "shit"
#git config --global user.email "github-actions[bot]@users.noreply.github.com"
#git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git status
if [ -n "$(git status --porcelain)" ]; then
git add .