allows installing tsk in a empty directory

This commit is contained in:
FineArchs 2024-05-23 09:41:34 +09:00 committed by GitHub
parent 89f765dd4b
commit e76841cd6f
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 &&