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