.emacs.d/snippets/sh-mode/root-check

10 lines
170 B
Bash

# -*- mode: Shell-script -*-
# name:root-check
# key:root
# --
user=$(whoami)
if [ $user == root ]; then
error "You should NOT be using a root account"
exit 1
fi