Skip to content

Commit

Permalink
Changed ExtractResources.sh to not prompt for any settings when start…
Browse files Browse the repository at this point in the history
…ed with the "a" parameter

Also changed the high-resolution prompts to indicate no is the default value.
  • Loading branch information
Muehe committed Sep 22, 2023
1 parent 9652362 commit b085931
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions contrib/extractor_scripts/ExtractResources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ then
fi

## MMap Extraction specific
if [ "$USE_MMAPS" = "1" ]
if [ "$1" = "a" ]
then
NUM_THREAD="all"
USE_MMAPS_DELAY=""
elif [ "$USE_MMAPS" = "1" ]
then
## Obtain number of processes
echo "How many CPU threads should be used for extracting mmaps? (leave empty to use all available threads)"
Expand Down Expand Up @@ -170,9 +174,12 @@ then
fi

## Check if user want to do high resolution extraction of maps
if [ "$USE_AD" = "1" ]; then
if [ "$1" = "a" ]
then
AD_RES=""
elif [ "$USE_AD" = "1" ]; then
echo
echo "Would you like the extraction of maps to be high-resolution? (y/n)"
echo "Would you like the extraction of maps to be high-resolution? [y/N]"
read line
if [ "$line" = "y" ]; then
AD_RES="-f 0"
Expand All @@ -182,16 +189,20 @@ if [ "$USE_AD" = "1" ]; then
fi

## Check if user want to do high resolution extraction of vmaps
if [ "$USE_VMAPS" = "1" ]; then
if [ "$1" = "a" ]
then
VMAP_RES=""
elif [ "$USE_VMAPS" = "1" ]; then
echo
echo "Would you like the extraction of vmaps to be high-resolution? (y/n)"
echo "Would you like the extraction of vmaps to be high-resolution? [y/N]"
read line
if [ "$line" = "y" ]; then
VMAP_RES="-l"
else
VMAP_RES=""
fi
fi

## Give some status
echo
echo "Current Settings:"
Expand Down

0 comments on commit b085931

Please sign in to comment.