test: fix run script use of non standard \+
in sed regex
This commit is contained in:
parent
e2c1d44a7f
commit
fbe68f375e
2
test/run
2
test/run
|
@ -47,7 +47,7 @@ main() {
|
||||||
[ -f $file ] && cp $file $work/$dir/
|
[ -f $file ] && cp $file $work/$dir/
|
||||||
done
|
done
|
||||||
cd $work/$dir;
|
cd $work/$dir;
|
||||||
indent="$(echo "$dir/" | sed -e 's|[^/]*/\+| |g')"
|
indent="$(echo "$dir/" | sed -e 's|[^/]*//*| |g')"
|
||||||
name=${PWD##*/}
|
name=${PWD##*/}
|
||||||
if [ ! -f cmd ]; then
|
if [ ! -f cmd ]; then
|
||||||
echo "$indent$name"
|
echo "$indent$name"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user