#!/bin/bash
# /opt/chicken/5.3.0
# WHICHCKVER=5.1.0_WW45
WHICHCKVER=5.3.0

BASEDIR=/opt/chicken/$WHICHCKVER
export PATH="$BASEDIR/bin:$PATH"

NEW_LD_LIBRARY_PATH="$BASEDIR/lib:$BASEDIR/lib64"
if [[ -z "$LD_LIBRARY_PATH" ]];then
  export LD_LIBRARY_PATH=$NEW_LD_LIBRARY_PATH
else
  export LD_LIBRARY_PATH="$NEW_LD_LIBRARY_PATH:$LD_LIBRARY_PATH"
fi

exec "$@"

