1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 21:45:10 +01:00

Check root and make sure we are in the right dir

This commit is contained in:
Michiel Scholten
2014-07-29 17:02:30 +02:00
parent b9469bdf5c
commit e6b90e607b

View File

@@ -1,5 +1,13 @@
#!/bin/bash
# Make sure only root can run our script
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
cd /usr/share/themes
if [ ! -d "Numix Daily" ]; then
echo "Numix theme not found!"
exit 1