Explorar o código

inst : check script existance before executing installation

Jovian (Darkside) %!s(int64=6) %!d(string=hai) anos
pai
achega
ecd0b6c6d2
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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 $?