System Void 9 лет назад
Родитель
Сommit
20675ac380
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      bin/v-open-fs-file

+ 5 - 0
bin/v-open-fs-file

@@ -33,6 +33,11 @@ if [ ! -z "$src_file" ]; then
         echo "Error: invalid source path $src_file"
         exit 2
     fi
+    
+    if [ ! -f "$src_file" ]; then
+        echo "Error: file not found $src_file"
+        exit 2
+    fi
 fi
 
 # Reading file