mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
yad as function
This commit is contained in:
@@ -68,6 +68,7 @@ function check_for_updates() {
|
||||
}
|
||||
|
||||
#### Program setup functions
|
||||
function yad_install() {
|
||||
# Find out if we have yad and install if not
|
||||
echo "Yad is used to create the interactive menus this program uses."
|
||||
echo "If yad is not installed, we will attempt to install it now."
|
||||
@@ -77,6 +78,7 @@ sudo apt-get -y install yad ||
|
||||
{ echo "Yad install failed. Yad is required to run this installer. Please install yad and try again or check your internet connection."; exit 1; }
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
# Find the screen size. Will default to 800x480 if it can not be detected.
|
||||
function set_screen_size() {
|
||||
@@ -652,6 +654,7 @@ exit 1
|
||||
|
||||
|
||||
check_for_updates
|
||||
yad_install
|
||||
set_screen_size
|
||||
#check_repo_version
|
||||
confirm_os
|
||||
|
||||
Reference in New Issue
Block a user