Skip to content

Commit

Permalink
More refactorings to rails setup
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Mar 23, 2011
1 parent 0861e88 commit 38edcdd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rails/bin/setup
Expand Up @@ -2,7 +2,7 @@


[[ "$trace_flag" -eq 1 ]] && set -x [[ "$trace_flag" -eq 1 ]] && set -x


. "$scripts_path/initialize" source "$scripts_path/initialize"


while [ $# -gt 0 ] ; do while [ $# -gt 0 ] ; do
token="$1" ; shift token="$1" ; shift
Expand All @@ -22,7 +22,7 @@ RAILS_ENV="${RAILS_ENV:-$environment}"
# #
# Sanity checks # Sanity checks
# #
if [[ "root" = $(whoami) ]] ; then if [[ $UID -eq 0 ]] ; then
$scripts_path/log "error" "bdsm extension $extension must be run as the project user and NOT root." $scripts_path/log "error" "bdsm extension $extension must be run as the project user and NOT root."
exit 1 exit 1
fi fi
Expand Down Expand Up @@ -129,7 +129,7 @@ if [[ -d "$shared_path/$project/" ]] && [[ -s "$shared_path/$project/.rvmrc" ]]
. "$shared_path/$project/.rvmrc" . "$shared_path/$project/.rvmrc"
fi fi


if [[ ! -z "$database" ]] && command -v gem > /dev/null; then if [[ -n "$database" ]] && command -v gem > /dev/null; then
if [[ "postgresql" = "$database" ]] ; then if [[ "postgresql" = "$database" ]] ; then
gem install pg --no-rdoc --no-ri gem install pg --no-rdoc --no-ri
if [[ "$?" -ne 0 ]] ; then if [[ "$?" -ne 0 ]] ; then
Expand Down

0 comments on commit 38edcdd

Please sign in to comment.