Skip to content

Commit

Permalink
Merge pull request #16 from gameclosure/feature-no-root
Browse files Browse the repository at this point in the history
Do not allow script to run as root
  • Loading branch information
mikehenrty committed Feb 28, 2013
2 parents 692402a + e8e2e08 commit 4f4e729
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/usr/bin/env bash

# Make sure we are not running as root
if [[ $EUID -eq 0 ]]; then
echo "This script should not be run as root" 1>&2
exit 1
fi

BASIL_ROOT=$(cd -P $(dirname "$0") && pwd)

if [[ -z "$BASH_VERSION" ]]; then
Expand Down

0 comments on commit 4f4e729

Please sign in to comment.