From cb396bb67c74946d0c61dd6acf4f610e43ac77b3 Mon Sep 17 00:00:00 2001
From: Panagiotis Ntinis <panagiotisntinis@hotmail.com>
Date: Tue, 28 Apr 2020 21:43:40 +0300
Subject: [PATCH] modification of unix_setup.sh to fix installation on
 directories with space in their path

---
 unix_setup.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/unix_setup.sh b/unix_setup.sh
index dc92f38236..9b6b383764 100644
--- a/unix_setup.sh
+++ b/unix_setup.sh
@@ -55,15 +55,15 @@ else
     exit 1
 fi
 
-ext_jar_filepath=$PWD/autopsy/modules/ext/sleuthkit-postgresql-$TSK_VERSION.jar;
+ext_jar_filepath="$PWD/autopsy/modules/ext/sleuthkit-postgresql-$TSK_VERSION.jar";
 echo -n "Copying sleuthkit-$TSK_VERSION.jar into the Autopsy directory..."
-rm -f $ext_jar_filepath;
+rm -f "$ext_jar_filepath";
 if [ "$?" -gt 0 ]; then  #checking if remove operation failed
     echo "ERROR: Deleting $ext_jar_filepath failed."
     echo "Please check your permissions."
     exit 1
 else
-    cp $sleuthkit_jar_filepath $ext_jar_filepath
+    cp $sleuthkit_jar_filepath "$ext_jar_filepath"
     if [ "$?" -ne 0 ]; then # checking copy operation was successful
         echo "ERROR: Copying $sleuthkit_jar_filepath to $ext_jar_filepath failed."
 	echo "Please check your permissions."
-- 
GitLab