We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
str_replace
dracut-lib.sh
1 parent d7d80af commit 0da80a1Copy full SHA for 0da80a1
modules.d/99base/dracut-lib.sh
@@ -103,26 +103,6 @@ vinfo() {
103
done
104
}
105
106
-# replaces all occurrences of 'search' in 'str' with 'replacement'
107
-#
108
-# str_replace str search replacement
109
110
-# example:
111
-# str_replace ' one two three ' ' ' '_'
112
-str_replace() {
113
- local in="$1"
114
- local s="$2"
115
- local r="$3"
116
- local out=''
117
-
118
- while strstr "${in}" "$s"; do
119
- chop="${in%%"$s"*}"
120
- out="${out}${chop}$r"
121
- in="${in#*"$s"}"
122
- done
123
- echo "${out}${in}"
124
-}
125
126
killall_proc_mountpoint() {
127
local _pid
128
local _killed=0
0 commit comments