222 if [ $? -ne 0 ]; then |
222 if [ $? -ne 0 ]; then |
223 echo "test 5: list-versions failed" |
223 echo "test 5: list-versions failed" |
224 exit 2 |
224 exit 2 |
225 fi |
225 fi |
226 |
226 |
|
227 |
227 # extract version name |
228 # extract version name |
228 VERSION=${VERSION:5} |
229 VERSION=${VERSION##name: } |
229 |
230 |
230 $DAV_SYNC_BIN restore -V $VERSION tmp-sync/test5a/dir1/file2 > tmp-sync/out.txt 2> /dev/null |
231 $DAV_SYNC_BIN restore -V $VERSION tmp-sync/test5a/dir1/file2 > tmp-sync/out.txt 2> /dev/null |
231 if [ $? -ne 0 ]; then |
232 if [ $? -ne 0 ]; then |
232 echo "test 5: restore failed" |
233 echo "test 5: restore failed" |
233 exit 2 |
234 exit 2 |