Skip to content

Instantly share code, notes, and snippets.

@mix3
Created February 20, 2015 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mix3/50d0a4f703707728a391 to your computer and use it in GitHub Desktop.
Save mix3/50d0a4f703707728a391 to your computer and use it in GitHub Desktop.
#!/bin/bash
LIB_DIR=~/.plenv/libs
PERL_VERSION=`plenv version | awk -v ORS='' '{print $1}'`
SS_DIR=`ls -alh $LIB_DIR | grep $PERL_VERSION | grep start_server | awk '{print $NF}'`;
SS_LIB=$LIB_DIR/$SS_DIR
if [ -e $SS_LIB ]; then
eval $(perl -Mlocal::lib=$SS_LIB)
start_server "$@"
else
exit 1
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment