From d55e2b1fdca07e9a427b6dfdcca37cd87065d130 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 26 Jun 2017 10:29:34 +0200 Subject: [PATCH] Tweak another attempt to fix script in file-span-vol-test to be FreeBSD compatibile --- regress/tests/file-span-vol-test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/tests/file-span-vol-test b/regress/tests/file-span-vol-test index a5d0127054..9d29497e18 100755 --- a/regress/tests/file-span-vol-test +++ b/regress/tests/file-span-vol-test @@ -23,8 +23,8 @@ echo "${cwd}/build" >>${cwd}/tmp/file-list change_jobname NightlySave $JobName start_test -# Remove last / and convert all / to cd commands -CD=`printf $tmp | sed 's:/$::' | sed 's:/:\ncd :g'` +# Remove last / and convert first / to "cd /" +CD=`echo $tmp | sed 's:/$::' | sed 's:^/:cd /:'` echo "CD=${CD}" cat <${cwd}/tmp/bconcmds -- 2.39.5