From 44d1ef73fbb563d7b739f841b05f5b619908b4ec Mon Sep 17 00:00:00 2001 From: "Lucas C. Villa Real" Date: Mon, 2 Jul 2018 00:56:31 -0300 Subject: Basic sanity check: verify that input files exist --- bin/ThirdPartyInstaller | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/ThirdPartyInstaller b/bin/ThirdPartyInstaller index 76d1755..332718a 100755 --- a/bin/ThirdPartyInstaller +++ b/bin/ThirdPartyInstaller @@ -493,6 +493,12 @@ inputnames=() eval `Args_To_Array inputfiles_` for entry in "${inputfiles_[@]}" do + if [ ! -f "$entry" ] + then Die "$entry: file not found" + fi +done +for entry in "${inputfiles_[@]}" +do inputfile=$(fetch_package "$entry") inputfiles+=( "$inputfile" ) inputnames+=( "$(thirdparty_name $inputfile)" ) -- cgit v1.1