fix(scripts): fixed rpm dialog script.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
Federico Di Pierro 2022-11-10 16:52:06 +01:00 committed by poiana
parent a94f26ec43
commit 988256d930
2 changed files with 4 additions and 8 deletions

View File

@ -19,8 +19,7 @@ set -e
chosen_driver=
case "$1" in
configure)
if [ "$1" = "configure" ]; then
if [ -x /usr/bin/dialog ]; then
# 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 \
@ -46,8 +45,7 @@ case "$1" in
;;
esac
fi
;;
esac
fi
# If needed, try to load/compile the driver through falco-driver-loader
case "$chosen_driver" in

View File

@ -18,8 +18,7 @@ set -e
chosen_driver=
case "$1" in
configure)
if [ $1 -eq 1 ]; then
if [ -x /usr/bin/dialog ]; then
# 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 \
@ -45,8 +44,7 @@ case "$1" in
;;
esac
fi
;;
esac
fi
# If needed, try to load/compile the driver through falco-driver-loader
case "$chosen_driver" in