Determine the path in which the user is attempting to launch the bin file
# this will output the path the user is in actually # and you can use this aswell as a variable. echo $(pwd)$PWD
# This will search the whole filesystem for your file # in case you need this rather than the patch the user is in. # you can aswell make this a variable to put the whole into $() find / -name "nameof the bin file"
Verify that both files exist in that path (installer.bin & cert.ssl
If both files exist launch the bin and if not display warning message
if [ -e filename] # when the file exists
then
# do what you need to do
else
# output error message
fi
See more info of the possible IF cases here.