diff options
-rwxr-xr-x | bin/autoindent | 2 | ||||
-rwxr-xr-x | bin/devel/generate (renamed from generate.sh) | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/bin/autoindent b/bin/autoindent index c45da1e..52c61c6 100755 --- a/bin/autoindent +++ b/bin/autoindent @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash file=$1 sed -i 's/^\s*//' "$file" emacs --batch "$file" \ diff --git a/generate.sh b/bin/devel/generate index 3a9d738..d71b454 100755 --- a/generate.sh +++ b/bin/devel/generate @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # The generate.sh bash file is used to generate all of the necessary # .rb files to run the website @@ -23,7 +23,8 @@ set -xe # figure out where we are running from -srcdir=$(dirname "$(readlink -f "$0")") +srcdir="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")" +# srcdir / bin / devel / generate cd "$srcdir" export RAILS_ENV=development |