]> git.sur5r.net Git - bacula/bacula/commitdiff
Make file-span-vol-test portable
authorKern Sibbald <kern@sibbald.com>
Sun, 28 May 2017 13:38:05 +0000 (15:38 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 28 May 2017 13:38:05 +0000 (15:38 +0200)
regress/tests/file-span-vol-test

index 04a2e0bd22de346403de4cc0a5cee39095ced3ba..11cedb346c5350705ea4b0603c72627a49468a1e 100755 (executable)
@@ -24,8 +24,7 @@ change_jobname NightlySave $JobName
 start_test
 
 # Remove last / and convert all / to cd commands
-CD=`echo $tmp | sed 's:/$::' | sed 's:/:\ncd :g'`
-echo "CD=${CD}"
+CD=`printf $tmp | sed 's:/$::' | sed 's:/:\ncd :g'`
 
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @output /dev/null