From cba3e351345bc38e0bfb0d56ade55abefae65d6b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 20 Apr 2005 15:38:51 +0000 Subject: add a check --- rescue/make_partimage_save_rest_all | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rescue/make_partimage_save_rest_all b/rescue/make_partimage_save_rest_all index e1be1ed2d..d91bfd3ec 100755 --- a/rescue/make_partimage_save_rest_all +++ b/rescue/make_partimage_save_rest_all @@ -17,6 +17,10 @@ if [ -n "$partimage_dir" ]; then echo "can't find $partimage_dir$local_where" exit 1 } + [ -r "$partimage_dir$local_where/lst" ] || { + echo "can't read $partimage_dir$local_where/*" + exit 1 + } fi rm -rf .tmp -- cgit v1.2.1