update script
This commit is contained in:
parent
4eeaf0ac32
commit
f0f5376c0e
1 changed files with 4 additions and 2 deletions
|
|
@ -5,19 +5,21 @@ FOLDER=$(dirname "$(realpath $0)")
|
||||||
APK_DIR="${1}"
|
APK_DIR="${1}"
|
||||||
RES_DIR="${2}"
|
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 "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/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"
|
echo " /path/to/result/dir is the folder where to store the analysis results"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
if [ ! -f "${RES_DIR}" ]; then
|
if [ ! -n "${RES_DIR}" ]; then
|
||||||
echo "Usage: bash ${0} /path/to/apk/dir /path/to/result/dir"
|
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/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"
|
echo " /path/to/result/dir is the folder where to store the analysis results"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkdir -p "${RES_DIR}"
|
||||||
|
|
||||||
TMP_DIR=$(mktemp -d)
|
TMP_DIR=$(mktemp -d)
|
||||||
|
|
||||||
python3 -m venv "${FOLDER}/venv"
|
python3 -m venv "${FOLDER}/venv"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue