Last active
November 2, 2024 09:54
-
-
Save wafsek/b78cb3214787a605a28b to your computer and use it in GitHub Desktop.
A Example of whiptail menu with functions
Thanks for the feedback. I appreciate it :)
Good job. But I think you don't need option "9)" "End script". Simply check the command exit code and break the loop.
while [ 1 ]
do
whiptail --title="[...]" --menu="[...]" [...]
if [ $? -gt 0 ]; then # user pressed <Cancel> button
break
fi
done
Good job. But I think you don't need option "9)" "End script". Simply check the command exit code and break the loop.
while [ 1 ] do whiptail --title="[...]" --menu="[...]" [...] if [ $? -gt 0 ]; then # user pressed <Cancel> button break fi done
ahh thanks i will see and do it .
Thank you! This is a very good example
Thank you so much. I appreciate it :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! This is a very good example