mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
modification of unix_setup.sh to fix installation on directories with space in their path
This commit is contained in:
parent
77a295cb67
commit
cb396bb67c
@ -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."
|
||||
|
Loading…
x
Reference in New Issue
Block a user