Simplified Notifications Further
This commit is contained in:
parent
9e29b8014f
commit
846139600f
@ -12,8 +12,8 @@ while true; do
|
|||||||
|
|
||||||
# Clone the repo if it doesn't exist
|
# Clone the repo if it doesn't exist
|
||||||
if [ -z "$(find /root/Repo_Watcher/repo -maxdepth 1 -mindepth 1 -type f -o -type d 2>/dev/null)" ]; then
|
if [ -z "$(find /root/Repo_Watcher/repo -maxdepth 1 -mindepth 1 -type f -o -type d 2>/dev/null)" ]; then
|
||||||
curl -d "Downloading: $REPO_URL..." $NTFY_URL
|
curl -d "Pulling: $REPO_URL" $NTFY_URL
|
||||||
echo "Downloading: $REPO_URL..."
|
echo "Pulling: $REPO_URL"
|
||||||
git clone $REPO_URL repo
|
git clone $REPO_URL repo
|
||||||
cd repo
|
cd repo
|
||||||
rsync -av --delete --exclude '.git/' ./ /DATA
|
rsync -av --delete --exclude '.git/' ./ /DATA
|
||||||
@ -32,8 +32,8 @@ while true; do
|
|||||||
if [ $LOCAL = $REMOTE ]; then
|
if [ $LOCAL = $REMOTE ]; then
|
||||||
echo "Repository Up-to-Date"
|
echo "Repository Up-to-Date"
|
||||||
else
|
else
|
||||||
curl -d "Pulling Updates: $REPO_URL" $NTFY_URL
|
curl -d "Pulling: $REPO_URL" $NTFY_URL
|
||||||
echo "Pulling Updates: $REPO_URL"
|
echo "Pulling: $REPO_URL"
|
||||||
git pull origin main
|
git pull origin main
|
||||||
rsync -av --delete --exclude '.git/' ./ /DATA
|
rsync -av --delete --exclude '.git/' ./ /DATA
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user