Add universal install and update script

This commit is contained in:
Medvidek77 2025-02-14 18:43:15 +01:00
parent 82291c68b1
commit cf5ffb931d
2 changed files with 25 additions and 0 deletions

13
scripts/universal/install.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
if [ "$EUID" -ne 0 ]; then
echo "Please run script as root"
exit 1
else
if [ ! -f /bin/tidler ]; then
install -m 755 ../../src/tidler /bin/tidler
else
echo "TiDLer is already installed"
fi
fi

12
scripts/universal/update.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
if [ "$EUID" -ne 0 ]; then
echo "Please run script as root"
exit 1
else
if [ -f /bin/tidler ]; then
cd ../../
git pull
install -m 755 src/tidler /bin/tidler
fi
fi