Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed 'kerl active' on MacOSX #2

Merged
merged 1 commit into from

2 participants

@konradkaplita

Hi,

I noticed that you use 'head -c -4' command but minus sign is gnu specific. head command on bsd and mac will fail with "head: illegal byte count -- -4". I replaced head with sed and now 'kerl active' should work on any os.

Regards,
Konrad

@evax evax merged commit e96ce81 into evax:master
@evax
Owner

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 7, 2011
  1. @konradkaplita
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  kerl
View
2  kerl
@@ -391,7 +391,7 @@ do_active()
{
if [ -n "$_KERL_SAVED_PATH" ]; then
echo "The current active installation is:"
- echo `echo $PATH | cut -d ":" -f 1 | head -c -4`
+ echo `echo $PATH | cut -d ":" -f 1 | sed 's/\(.*\)..../\1/'`
return 0
else
echo "No Erlang/OTP kerl installation is currently active"
Something went wrong with that request. Please try again.