1
0
Prechádzať zdrojové kódy

inst : check script existance before executing installation

Jovian (Darkside) 6 rokov pred
rodič
commit
ecd0b6c6d2
1 zmenil súbory, kde vykonal 8 pridanie a 0 odobranie
  1. 8 0
      inst

+ 8 - 0
inst

@@ -38,6 +38,11 @@ then
 fi
 
 # Check file existance
+if [ ! -e $script ]
+then
+	inst_fatal "$script does not exist"
+	exit 1
+fi
 
 # Prompt before installation
 inst_out 'Ready for installation'
@@ -95,6 +100,9 @@ then
 	fi
 fi
 
+# Check if all right
+
+
 # End
 inst_out 'Script finished'
 exit $?