aboutsummaryrefslogtreecommitdiff
path: root/files/sync-media
diff options
context:
space:
mode:
Diffstat (limited to 'files/sync-media')
-rw-r--r--files/sync-media3
1 files changed, 3 insertions, 0 deletions
diff --git a/files/sync-media b/files/sync-media
index 331294f..524517d 100644
--- a/files/sync-media
+++ b/files/sync-media
@@ -52,6 +52,9 @@ function sync_media_add {
# Set sudo config
if [ "$WHOAMI" != 'root' ]; then
sudo="sudo"
+else
+ echo "Sorry, cannot run as root"
+ exit 1
fi
# Set fsck config