diff --git a/bin/steps/django/collectstatic b/bin/steps/django/collectstatic index 91ea014c7c1719706cc9aecc38a124a247ed1686..999545b992b36ee8c45a299b31aea29d67cefd41 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 6577454853ef1ff8ccead2da094888b221b4f56b..5496daab91011c74e2102b481b3508613a908407 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