do not error if file is not there

This commit is contained in:
Brian Carrier 2018-05-01 12:27:40 -04:00
parent 47ebd238e8
commit 46d9659ef5

View File

@ -44,7 +44,7 @@ ext_jar_filepath=$PWD/autopsy/modules/ext/sleuthkit-postgresql-$TSK_VERSION.jar;
if [ -f "$sleuthkit_jar_filepath" ]; then
echo "$sleuthkit_jar_filepath found"
echo "Copying into the Autopsy directory"
rm $ext_jar_filepath;
rm -f $ext_jar_filepath;
if [ "$?" -gt 0 ]; then #checking if remove operation failed
echo "exiting .."
exit 1