From: Kern Sibbald Date: Mon, 26 Jun 2017 08:29:34 +0000 (+0200) Subject: Tweak another attempt to fix script in file-span-vol-test to be FreeBSD compatibile X-Git-Tag: Release-9.0.0~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d55e2b1fdca07e9a427b6dfdcca37cd87065d130;p=bacula%2Fbacula Tweak another attempt to fix script in file-span-vol-test to be FreeBSD compatibile --- 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