12 lines
186 B
Bash
Executable file
12 lines
186 B
Bash
Executable file
#!/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
|