test: fix run script use of non standard \+ in sed regex

This commit is contained in:
Maxime Coste 2018-02-07 19:38:13 +11:00
parent e2c1d44a7f
commit fbe68f375e

View File

@ -47,7 +47,7 @@ main() {
[ -f $file ] && cp $file $work/$dir/
done
cd $work/$dir;
indent="$(echo "$dir/" | sed -e 's|[^/]*/\+| |g')"
indent="$(echo "$dir/" | sed -e 's|[^/]*//*| |g')"
name=${PWD##*/}
if [ ! -f cmd ]; then
echo "$indent$name"