mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-16 05:13:50 +00:00
fix(scripts): fixed rpm dialog script.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
parent
a94f26ec43
commit
988256d930
@ -19,8 +19,7 @@ set -e
|
|||||||
|
|
||||||
chosen_driver=
|
chosen_driver=
|
||||||
|
|
||||||
case "$1" in
|
if [ "$1" = "configure" ]; then
|
||||||
configure)
|
|
||||||
if [ -x /usr/bin/dialog ]; then
|
if [ -x /usr/bin/dialog ]; then
|
||||||
# If dialog is installed, create a dialog to let users choose the correct driver for them
|
# If dialog is installed, create a dialog to let users choose the correct driver for them
|
||||||
CHOICE=$(dialog --clear --backtitle "Choose your preferred driver" --title "Falco driver" --menu "Choose one of the following options:" 15 40 4 \
|
CHOICE=$(dialog --clear --backtitle "Choose your preferred driver" --title "Falco driver" --menu "Choose one of the following options:" 15 40 4 \
|
||||||
@ -46,8 +45,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
;;
|
fi
|
||||||
esac
|
|
||||||
|
|
||||||
# If needed, try to load/compile the driver through falco-driver-loader
|
# If needed, try to load/compile the driver through falco-driver-loader
|
||||||
case "$chosen_driver" in
|
case "$chosen_driver" in
|
||||||
|
@ -18,8 +18,7 @@ set -e
|
|||||||
|
|
||||||
chosen_driver=
|
chosen_driver=
|
||||||
|
|
||||||
case "$1" in
|
if [ $1 -eq 1 ]; then
|
||||||
configure)
|
|
||||||
if [ -x /usr/bin/dialog ]; then
|
if [ -x /usr/bin/dialog ]; then
|
||||||
# If dialog is installed, create a dialog to let users choose the correct driver for them
|
# If dialog is installed, create a dialog to let users choose the correct driver for them
|
||||||
CHOICE=$(dialog --clear --backtitle "Choose your preferred driver" --title "Falco driver" --menu "Choose one of the following options:" 15 40 4 \
|
CHOICE=$(dialog --clear --backtitle "Choose your preferred driver" --title "Falco driver" --menu "Choose one of the following options:" 15 40 4 \
|
||||||
@ -45,8 +44,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
;;
|
fi
|
||||||
esac
|
|
||||||
|
|
||||||
# If needed, try to load/compile the driver through falco-driver-loader
|
# If needed, try to load/compile the driver through falco-driver-loader
|
||||||
case "$chosen_driver" in
|
case "$chosen_driver" in
|
||||||
|
Loading…
Reference in New Issue
Block a user