Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use bash & errexit to exit if something fails.

This fixes GH-174.
  • Loading branch information...
commit bb95f909baaf629482252952e019735921fa719e 1 parent b8367f1
@jorgenpt jorgenpt authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 install-appledoc.sh
View
7 install-appledoc.sh 100644 → 100755
@@ -1,4 +1,7 @@
-#!/bin/sh
+#!/usr/bin/env bash
+
+# Enable errexit: Exit if any "simple command" fails
+set -e
BINARY_DIR=/usr/local/bin/
TEMPLATES_DIR=~/.appledoc
@@ -38,4 +41,4 @@ echo "Installing binary to $BINARY_DIR"
cp /tmp/appledoc.dst/usr/local/bin/appledoc "$BINARY_DIR"
echo "Copying templates to $TEMPLATES_DIR"
-cp -R Templates/ "$TEMPLATES_DIR"
+cp -R Templates/ "$TEMPLATES_DIR"
Please sign in to comment.
Something went wrong with that request. Please try again.