Skip to content

Commit

Permalink
Abort build if built
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Apr 12, 2019
1 parent d6aabc7 commit aca00c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nems-build.sh
Expand Up @@ -16,6 +16,11 @@ if [[ $EUID -ne 0 ]]; then
exit 1
else

if [[ -e /usr/local/share/nems ]]; then
echo "NEMS is already built. Aborting.";
exit 1
fi

# Create the log folder
if [[ ! -d /var/log/nems ]]; then
mkdir /var/log/nems
Expand Down

0 comments on commit aca00c9

Please sign in to comment.