From 436e945a91874cb89d8a432226de765bbc14dd55 Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.com>
Date: Wed, 30 May 2012 03:43:03 -0400
Subject: [PATCH] indents

---
 bin/steps/django/collectstatic | 7 +++++++
 bin/steps/django/injection     | 6 ++++++
 2 files changed, 13 insertions(+)

diff --git a/bin/steps/django/collectstatic b/bin/steps/django/collectstatic
index 91ea014c..999545b9 100755
--- a/bin/steps/django/collectstatic
+++ b/bin/steps/django/collectstatic
@@ -2,6 +2,13 @@
 
 set +e
 
+# Syntax sugar.
+indent() {
+  RE="s/^/       /"
+  [ $(uname) == "Darwin" ] && sed -l "$RE" || sed -u "$RE"
+}
+
+
 # Check if collectstatic is configured.
 python $MANAGE_FILE collectstatic --help &> /dev/null && RUN_COLLECTSTATIC=true
 
diff --git a/bin/steps/django/injection b/bin/steps/django/injection
index 65774548..5496daab 100755
--- a/bin/steps/django/injection
+++ b/bin/steps/django/injection
@@ -12,6 +12,12 @@
 # ## Sanity Checks
 #
 
+# Syntax sugar.
+indent() {
+  RE="s/^/       /"
+  [ $(uname) == "Darwin" ] && sed -l "$RE" || sed -u "$RE"
+}
+
 echo "-----> Installing dj-database-url..."
 pip install --use-mirrors dj-database-url | indent
 
-- 
GitLab