Commit 9d32a281 authored by Noah Zoschke's avatar Noah Zoschke

simplify sed detection

parent c9be6958
...@@ -11,11 +11,10 @@ NAME=$($BIN_DIR/detect $BUILD_DIR) ...@@ -11,11 +11,10 @@ NAME=$($BIN_DIR/detect $BUILD_DIR)
PIP_DOWNLOAD_CACHE=${PIP_DOWNLOAD_CACHE:-$CACHE_DIR/pip_downloads} PIP_DOWNLOAD_CACHE=${PIP_DOWNLOAD_CACHE:-$CACHE_DIR/pip_downloads}
VIRTUALENV_DIRS="bin include lib" VIRTUALENV_DIRS="bin include lib"
sed() { indent() {
# prefer GNU sed over BSD sed on OS X RE="s/^/ /"
$(which gsed || which sed) "$@" [ $(uname) == "Darwin" ] && sed -l "$RE" || sed -u "$RE"
} }
indent() { sed -u "s/^/ /"; }
cd $BUILD_DIR cd $BUILD_DIR
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment