Merge pull request #7903 from FineArchs/patch-1

linux_macos_install_scripts: allows installing tsk in a empty directory
This commit is contained in:
Mark McKinnon 2024-08-05 20:30:40 -04:00 committed by GitHub
commit 19d577ca48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,7 @@ if [[ -z "${SLEUTHKIT_SRC_DIR}" ]]; then
exit 1
fi
if [[ ! -d $SLEUTHKIT_SRC_DIR ]]; then
if [[ ! -d $SLEUTHKIT_SRC_DIR/.git ]]; then
TSK_REPO_PATH=$(dirname "$SLEUTHKIT_SRC_DIR")
echo "Cloning Sleuthkit to $TSK_REPO_PATH..."
mkdir -p $TSK_REPO_PATH &&