mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
cleanup bootable script
This commit is contained in:
parent
d3948ae87d
commit
d1e7dd3ec0
@ -33,15 +33,6 @@ createConfigDirectories () {
|
|||||||
if [ ! -d "$1" ]; then
|
if [ ! -d "$1" ]; then
|
||||||
mkdir $1 && infoLog "$1 successfully created" || errorLog "error while creating $1"
|
mkdir $1 && infoLog "$1 successfully created" || errorLog "error while creating $1"
|
||||||
fi
|
fi
|
||||||
if [ ! -d "$2" ]; then
|
|
||||||
mkdir $2 && infoLog "$2 successfully created" || errorLog "error while creating $2"
|
|
||||||
fi
|
|
||||||
if [ ! -d "$3" ]; then
|
|
||||||
mkdir $3 && infoLog "$3 successfully created" || errorLog "error while creating $3"
|
|
||||||
fi
|
|
||||||
if [ ! -d "$4" ]; then
|
|
||||||
mkdir $4 && infoLog "$4 successfully created" || errorLog "error while creating $4"
|
|
||||||
fi
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -71,11 +62,14 @@ showAndReadOptions () {
|
|||||||
|
|
||||||
|
|
||||||
# Show mounted drives and loop until it is valid
|
# Show mounted drives and loop until it is valid
|
||||||
showAndReadOptions
|
while true
|
||||||
if [ "$option" -lt "1" ] || [ "$option" -gt "$options_length" ]; then
|
do
|
||||||
infoLog "Please choose a valid option"
|
|
||||||
showAndReadOptions
|
showAndReadOptions
|
||||||
fi
|
if [ "$option" -ge "1" ] && [ "$option" -le "$options_length" ]; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
echo "Please choose a valid option"
|
||||||
|
done
|
||||||
|
|
||||||
if [ "$option" != "$options_length" ]; then
|
if [ "$option" != "$options_length" ]; then
|
||||||
index=$(( $option - 1 ))
|
index=$(( $option - 1 ))
|
||||||
@ -87,8 +81,7 @@ if [ "$option" != "$options_length" ]; then
|
|||||||
|
|
||||||
# Make the directories on the media
|
# Make the directories on the media
|
||||||
userDirectory="$autopsyConfigDir/userdir"
|
userDirectory="$autopsyConfigDir/userdir"
|
||||||
createConfigDirectories $autopsyConfigDir $userDirectory
|
createConfigDirectories $autopsyConfigDir && createConfigDirectories $userDirectory
|
||||||
|
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
sh $AUTOPSY_BIN --userdir $userDirectory
|
sh $AUTOPSY_BIN --userdir $userDirectory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user