Last active
December 19, 2015 14:58
-
-
Save erbmicha/5972538 to your computer and use it in GitHub Desktop.
patch for search-cmd script to allow symlinking (Riak v1.4.0) - FOR HOMEBREW USE ONLY
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bin/search-cmd b/bin/search-cmd | |
index db4bc74..375ab3d 100755 | |
--- a/bin/search-cmd | |
+++ b/bin/search-cmd | |
@@ -3,7 +3,7 @@ | |
# ex: ts=4 sw=4 et | |
# Pull environment for this install | |
-. "$(cd ${0%/*} && pwd)/../lib/env.sh" | |
+. "$(cd ${0%/*} && pwd)/$(dirname $(readlink $0))/../lib/env.sh" | |
# Make sure the user running this script is the owner and/or su to that user | |
check_user $@ | |
@@ -13,7 +13,7 @@ if [ "$ES" -ne 0 ]; then | |
fi | |
# Keep track of where script was invoked | |
-ORIGINAL_DIR=$(pwd) | |
+ORIGINAL_DIR=$(cd ${0%/*} && pwd)/$(dirname $(readlink $0)) | |
# Make sure CWD is set to runner run dir | |
cd $RUNNER_BASE_DIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment