Skip to content

Commit

Permalink
Prevent running installer.sh directly
Browse files Browse the repository at this point in the history
  • Loading branch information
k1sul1 authored Nov 9, 2017
1 parent 0ba1a68 commit d7c026f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions customizations/installer.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/usr/bin/env bash

cwd=$(pwd)

if [[ $cwd == *"customizations"* ]]; then
echo "You're doing it wrong. You should run install.sh from project root, and nothing from customizations folder."
exit 1
fi


source customizations/helpers.sh
source customizations/theme-installer.sh

Expand Down

0 comments on commit d7c026f

Please sign in to comment.