]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak another attempt to fix script in file-span-vol-test to be FreeBSD compatibile
authorKern Sibbald <kern@sibbald.com>
Mon, 26 Jun 2017 08:29:34 +0000 (10:29 +0200)
committerKern Sibbald <kern@sibbald.com>
Mon, 26 Jun 2017 08:29:34 +0000 (10:29 +0200)
regress/tests/file-span-vol-test

index a5d012705419c2b0323d3a90d61adc4a0a16066a..9d29497e18c06acf170ea19304551984fedda6ca 100755 (executable)
@@ -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 <<END_OF_DATA >${cwd}/tmp/bconcmds