mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 00:05:10 +01:00
Check root and make sure we are in the right dir
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user