#!/bin/sh
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
#
# Test file relocation feature
#
messages
@##################################
@$out tmp/RUN_JobG
-restore strip_prefix="${cwd}" add_prefix="/tmp/bacula-restore"
+restore strip_prefix="${cwd}" add_prefix="${tmp}/bacula-restore.$$"
5
cd ${cwd}/build/po
m *.po
J=JobG
grep "Restore OK" tmp/RUN_$J > /dev/null && \
-grep "tmp/bacula-restore/build/po/fr.po" tmp/RUN_$J > /dev/null
+grep "tmp/bacula-restore.$$/build/po/fr.po" tmp/RUN_$J > /dev/null
if [ $? = 0 ]
then
[ "$debug" = 1 ] && echo $J ok
echo "$J in error"
rstat=1
fi
+rm -rf ${tmp}/bacula-restore.$$
J=JobH
grep "Restore OK" tmp/RUN_$J > /dev/null && \