We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90cc426 commit 7ac90f1Copy full SHA for 7ac90f1
1 file changed
bin/utils
@@ -1,14 +1,16 @@
1
shopt -s extglob
2
3
+[ $(uname) == "Darwin" ] && SED_FLAG='-l' || SED_FLAG='-u'
4
+
5
# Syntax sugar.
6
indent() {
7
RE="s/^/ /"
- [ $(uname) == "Darwin" ] && sed -l "$RE" || sed -u "$RE"
8
+ sed $SED_FLAG "$RE"
9
}
10
11
# Clean up pip output
12
cleanup() {
- sed -l -e 's/\.\.\.\+/.../g' | sed -e '/already satisfied/Id' | sed -l -e '/Overwriting/Id' | sed -l -e '/python executable/Id' | sed -l -e '/no previously-included files/Id'
13
+ sed $SED_FLAG -e 's/\.\.\.\+/.../g' | sed $SED_FLAG '/already satisfied/Id' | sed $SED_FLAG -e '/Overwriting/Id' | sed $SED_FLAG -e '/python executable/Id' | sed $SED_FLAG -e '/no previously-included files/Id'
14
15
16
# Virtualenv wrapper.
0 commit comments