File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -125,30 +125,6 @@ error() {
125
125
}
126
126
# ==============================================================================
127
127
128
- # ==============================================================================
129
- # sed -l basically makes sed replace and buffer through stdin to stdout
130
- # so you get updates while the command runs and dont wait for the end
131
- # e.g. npm install
132
- # ------------------------------------------------------------------------------
133
- indent () {
134
- # if an arg is given it's a flag indicating we shouldn't indent the first line,
135
- # so use :+ to tell SED accordingly if that parameter is set, otherwise null
136
- # string for no range selector prefix (it selects from line 2 onwards and then
137
- # every 1st line, meaning all lines)
138
-
139
- # @CHECKME: Shouldn't the line below be used?
140
- # c="${1:+"2,999"} s/^/ /"
141
- c=' s/^/ /g'
142
- if [[ " $( uname -s) " == " Darwin" ]]; then
143
- # mac/bsd sed: -l buffers on line boundaries
144
- sed -l " $c "
145
- else
146
- # unix/gnu sed: -u unbuffered (arbitrary) chunks of data
147
- sed -u " $c "
148
- fi
149
- }
150
- # ==============================================================================
151
-
152
128
# ==============================================================================
153
129
printMessage () {
154
130
# ------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments