aboutsummaryrefslogtreecommitdiffstats
path: root/kerl
diff options
context:
space:
mode:
authorKonrad Kaplita <[email protected]>2011-04-07 12:45:27 +0200
committerKonrad Kaplita <[email protected]>2011-04-07 12:45:27 +0200
commite96ce81c7d911c3ccf6f67a1201de9a452e387df (patch)
treee51b3d72902ef73a46535b9972da77c2867760a2 /kerl
parent6655e7c48502fdee6e1d85d573a5569cd5b16e0c (diff)
downloadkerl-e96ce81c7d911c3ccf6f67a1201de9a452e387df.tar.gz
kerl-e96ce81c7d911c3ccf6f67a1201de9a452e387df.tar.bz2
kerl-e96ce81c7d911c3ccf6f67a1201de9a452e387df.zip
Fix 'kerl active' command on MacOSX
Diffstat (limited to 'kerl')
-rwxr-xr-xkerl2
1 files changed, 1 insertions, 1 deletions
diff --git a/kerl b/kerl
index 71b101f..02eade1 100755
--- a/kerl
+++ b/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"