addet gitupdate script

This commit is contained in:
pika 2024-06-22 09:06:27 +02:00
parent e4383f6ce7
commit fa0abf966a

11
.src/gitupdate.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
gitdir=$(pwd)
branch="main"
if ! command -v git >/dev/null 2>&1; then
echo "Error"
else
cd $gitdir
git pull origin $branch
fi