mirror of
https://codeberg.org/landley/toybox.git
synced 2026-01-26 14:13:25 +00:00
Call sed twice instead of five times.
This commit is contained in:
parent
f9a448aeb8
commit
b5be065121
@ -17,10 +17,7 @@ function clean()
|
||||
# the long and short forms of those.
|
||||
# We also don't want to rely on chattr(1) to set a known version number or
|
||||
# project number, so blank out any numbers.
|
||||
sed 's/, Encrypted//' | \
|
||||
sed 's/-E-/---/' | \
|
||||
sed 's/, Extents//' | \
|
||||
sed 's/-e-/---/' | \
|
||||
sed 's/, Encrypted//; s/-E-/---/; s/, Extents//; s/-e-/---/' | \
|
||||
sed -E 's/[0-9]+/_/g'
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user