From f0f5376c0e88335c7eda36f885eeebb0bd691b66 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Tue, 13 May 2025 18:00:22 +0200 Subject: [PATCH] update script --- experiment/run_dyn_analysis.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/experiment/run_dyn_analysis.sh b/experiment/run_dyn_analysis.sh index ed8af3e..399c26f 100644 --- a/experiment/run_dyn_analysis.sh +++ b/experiment/run_dyn_analysis.sh @@ -5,19 +5,21 @@ FOLDER=$(dirname "$(realpath $0)") APK_DIR="${1}" RES_DIR="${2}" -if [ ! -f "${APK_DIR}" ]; then +if [ ! -d "${APK_DIR}" ]; then echo "Usage: bash ${0} /path/to/apk/dir /path/to/result/dir" echo " /path/to/apk/dir is the folder where to store the application downloaded" echo " /path/to/result/dir is the folder where to store the analysis results" exit fi -if [ ! -f "${RES_DIR}" ]; then +if [ ! -n "${RES_DIR}" ]; then echo "Usage: bash ${0} /path/to/apk/dir /path/to/result/dir" echo " /path/to/apk/dir is the folder where to store the application downloaded" echo " /path/to/result/dir is the folder where to store the analysis results" exit fi +mkdir -p "${RES_DIR}" + TMP_DIR=$(mktemp -d) python3 -m venv "${FOLDER}/venv"