Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

trying to fix bin/lk

  • Loading branch information...
commit 3e71e2806c055dbd236f63bd69ca002543d6f15f 1 parent 16de381
@rksm authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 bin/lk
View
14 bin/lk
@@ -1,15 +1,15 @@
-#!/usr/bin/env bash
+#!/usr/bin/env sh
# ln -s $LIVELY/bin/lk /usr/local/bin/lk
# rm /usr/local/bin/lk
# check if we are directly invoked or using a symlink
# since we need to find out what the real directory is
-LK_SCRIPT_PATH=$(readlink $0)
-if [[ $LK_SCRIPT_PATH ]]; then
- LK_SCRIPT_PATH=$(dirname $0)/$LK_SCRIPT_PATH
+LK_SCRIPT_BIN_NO_LINK=$(readlink $0)
+if [[ $LK_SCRIPT_BIN_NO_LINK ]]; then
+ LK_SCRIPT_BIN_PATH=$(dirname $LK_SCRIPT_BIN_NO_LINK)
else
- LK_SCRIPT_PATH=$0
+ LK_SCRIPT_BIN_PATH=$(dirname $0)
fi
-DIR=$(dirname $LK_SCRIPT_PATH)
-node $DIR/../scripts/lk.js "$@"
+LK_SCRIPTS_DIR=$LK_SCRIPT_BIN_PATH/../scripts
+node $LK_SCRIPTS_DIR/lk.js "$@"
Please sign in to comment.
Something went wrong with that request. Please try again.