Sha256: 156eabebb0a337ce45aa503f28257503a07d195d378decc0cedcc05d6bbd09d0

Contents?: true

Size: 503 Bytes

Versions: 16

Compression:

Stored size: 503 Bytes

Contents

#!/bin/bash

msg=$(cat $1)

# wtf mac os x lion
if [ ! -z "$MY_RUBY_HOME" ]; then
  PATH="$MY_RUBY_HOME/bin:$PATH"
fi

if [ ! -z "$GEM_PATH" ]; then
  oifs="$IFS"
  while IFS=":" read -ra GEM_PATHS; do
    FIXED_GEM_PATH=""
    for i in "${GEM_PATHS[@]}"; do
      FIXED_GEM_PATH="$FIXED_GEM_PATH:${i}/bin"
    done
  done <<< "$GEM_PATH"
  IFS="$oifs"
  PATH="$FIXED_GEM_PATH:$PATH"
fi

if [[ "${msg}" != *"[ci skip]"* ]]; then
  bundle exec rake --trace
  R=$?
  if [ $R -ne 0 ]; then exit $R; fi
fi

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
penchant-0.2.29 script/hooks/commit-msg
penchant-0.2.28 script/hooks/commit-msg
penchant-0.2.27 script/hooks/commit-msg
penchant-0.2.26 script/hooks/commit-msg
penchant-0.2.24 script/hooks/commit-msg
penchant-0.2.23 script/hooks/commit-msg
penchant-0.2.22 script/hooks/commit-msg
penchant-0.2.21 script/hooks/commit-msg
penchant-0.2.20 script/hooks/commit-msg
penchant-0.2.19 script/hooks/commit-msg
penchant-0.2.18 script/hooks/commit-msg
penchant-0.2.17 script/hooks/commit-msg
penchant-0.2.16 script/hooks/commit-msg
penchant-0.2.15 script/hooks/commit-msg
penchant-0.2.14 script/hooks/commit-msg
penchant-0.2.13 script/hooks/commit-msg