mirror of
https://github.com/kforney/pentest-distro-builder.git
synced 2024-11-25 01:35:24 -07:00
Fix unary operators.
This commit is contained in:
parent
d855f8a752
commit
ecb86089a6
1 changed files with 5 additions and 4 deletions
9
runme.sh
9
runme.sh
|
@ -13,19 +13,20 @@ fi
|
|||
|
||||
#Arguments
|
||||
|
||||
DISTRO=$(lsb_release -i -s)
|
||||
|
||||
while getopts ud:r: option
|
||||
while getopts ul:d:r: option
|
||||
do
|
||||
case "${option}" in
|
||||
u) UNATTEND="true" && echo "UNATTEND";;
|
||||
l) DISTRO=${OPTARG} && echo $DISTRO;;
|
||||
d) DESKTOP=${OPTARG} && echo $DESKTOP;;
|
||||
r) REPO=${OPTARG} && echo $REPO;;
|
||||
esac
|
||||
done
|
||||
|
||||
DISTRO=$(lsb_release -i -s)
|
||||
|
||||
if [ $UNATTEND != "true" ];
|
||||
if [[ $UNATTEND != "true" ]];
|
||||
then
|
||||
whiptail --backtitle "Pentest Build Script" --title "Welcome" --msgbox "This script will help you build a custom pentesting distribution." 7 70
|
||||
|
||||
|
@ -104,7 +105,7 @@ Parrot)
|
|||
;;
|
||||
esac
|
||||
|
||||
if [ $UNATTEND != "true" ];
|
||||
if [[ $UNATTEND != "true" ]];
|
||||
then
|
||||
whiptail --backtitle "Pentest Build Script" --title "Finished" --msgbox "Fingers crossed there were no errors... Your image should be done!" 7 70
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue