Browse Source

add notify-send and use cp -n

master
Dor dicke Gind 2 years ago
parent
commit
bf07504782
  1. 22
      gind-repo-makepkg.sh

22
gind-repo-makepkg.sh

@ -1,18 +1,24 @@
#!/bin/sh #!/bin/sh
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
cd $SCRIPT_DIR
#git submodule update --recursive git submodule update --recursive
git submodule foreach ' git submodule foreach '
#creepy linux magic 2>&1 also pipes through stderr #creepy linux magic 2>&1 also pipes through stderr, not needed anymore
#isUpToDate=$(git fetch -v 2>&1 | grep "aktuell") #isUpToDate=$(git fetch -v 2>&1 | grep "aktuell")
#isUpToDate="" #isUpToDate=""
if [ $name == "cairo-dock-git" ] expireTimeNotifyOSD=10000
then currentId=1
echo "Not up to date" tmpFile=/tmp/currentNotifyId
git pull # gets the current notify id from our tmp file
if [ -s $tmpFile ]; then
currentId=$(cat $tmpFile)
fi
notify-send "Start makepkg for $name" -p -t $expireTimeNotifyOSD -r $currentId -i software-update-available > $tmpFile
#fixes issue with makepkg ... git repo is not a clone of ... #fixes issue with makepkg ... git repo is not a clone of ...
unset GIT_DIR unset GIT_DIR
makepkg makepkg
repo-add /mnt/pi-usb-ssd/gind-repo/x86_64/gind-repo.db.tar.gz $name*.pkg.tar.zst repo-add /mnt/pi-usb-ssd/gind-repo/x86_64/gind-repo.db.tar.gz $name*.pkg.tar.zst
mv $name*.pkg.tar.zst /mnt/pi-usb-ssd/gind-repo/x86_64/ cp -n $name*.pkg.tar.zst /mnt/pi-usb-ssd/gind-repo/x86_64/
fi
' '
Loading…
Cancel
Save