Update launch_bootable_Script.sh

This commit is contained in:
Rishwanth Senthilkumar 2018-08-21 13:35:34 -04:00 committed by GitHub
parent 598a0ffaa0
commit 632cc69276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,8 @@ showWarning() {
NC='\033[0m'
local e match="$1"
shift
for e; do [[ "$e" != "$match" ]] && echo -e "${RED}Warning: Case data stored in non removable disk cannot be saved${NC}"; done
for e; do [[ "$e" == "$match" ]] && return 0; done
echo -e "${RED}Warning: Case data stored in non removable disk cannot be saved${NC}"
}
@ -147,8 +148,8 @@ done
if [ "$option" != "$options_length" ]; then
index=$(( (option - 1) * 4 + 1 ))
casedirIndex=$(( (casedirOption - 1) * 3 + 1 ))
read -p 'Autopsy configurations will be stored in" "${mnt[$index]}"". Are you sure? (y/n): ' affirmation
casedirIndex=$(( (casedirOption - 1) * 3 + 2 ))
read -p "Autopsy configurations will be stored in ${mnt[$index]}. Are you sure? (y/n): " affirmation
if [ "$affirmation" == "y" ] || [ "$affirmation" == "Y" ]; then
if [[ -d "${mnt[$index]}" ]]; then
selectedMount=${mnt[$index]}
@ -168,7 +169,7 @@ if [ "$option" != "$options_length" ]; then
createConfigDirectories $autopsyConfigDir && createConfigDirectories $userDirectory
if [ $? -eq 0 ]; then
sh $AUTOPSY_BIN --userdir $userDirectory --liveAutopsy ${casedir[$casedirIndex]}
sh $AUTOPSY_BIN --userdir $userDirectory --liveAutopsy=${casedir[$casedirIndex]}
fi
fi
else