mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
8ca7f9c43b
* fix if condition * fix logic * typo
15 lines
283 B
Bash
15 lines
283 B
Bash
#!/bin/bash
|
|
set -e
|
|
. /home/ubuntu/.bashrc
|
|
export PATH="/usr/local/bin:/usr/bin:/bin"
|
|
|
|
git pull > /tmp/git_changes.txt
|
|
|
|
if grep -q "Already up to date." /tmp/git_changes.txt; then
|
|
echo "NO CHANGES"
|
|
else
|
|
echo "Reloading..."
|
|
docker-compose build
|
|
docker-compose up -d
|
|
fi
|