20 lines
380 B
Bash
Executable File
20 lines
380 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -a
|
|
source .env
|
|
set +a
|
|
|
|
cd ~/sergay || exit 1
|
|
git rebase --continue
|
|
|
|
git add .
|
|
|
|
if ! git diff --cached --quiet; then
|
|
git commit -m "update" || exit 1
|
|
else
|
|
echo "Нет новых изменений"
|
|
fi
|
|
|
|
git pull --rebase "http://usergit.duckdns.org/igor/sergay.git" main || exit 1
|
|
git push "http://igor:${GIT}@usergit.duckdns.org/igor/sergay.git"
|