Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
continuity fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
snwh committed May 20, 2018
1 parent 892af1e commit a91a309
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 121 deletions.
File renamed without changes.
23 changes: 23 additions & 0 deletions functions/install_favs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Install preferred apps
function install_favs {
# Update the list of packages in 'data/favs.list' to suit your preferences
install_from_list favs "preferred applications" main
}

# Install preferred development tools
function install_favs_dev {
# Update the list of packages in 'data/favs-dev.list' to suit your preferences
install_from_list favs-dev "preferred development tools" main
}

# Install preferred utilities
function install_favs_utils {
# Update the list of packages in 'data/favs-utils.list' to suit your preferences
install_from_list favs-utils "preferred utilities" main
}

# Install preferred GNOME apps
function install_codecs {
# Update the list of packages in 'data/codecs.list' to suit your preferences
install_from_list codecs "multimedia codecs" main
}
8 changes: 4 additions & 4 deletions functions/install_flatpak_apps
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function install_flatpak_apps {
NAME="Flatpak Applications"
echo_message title "Starting installation of ${NAME,,}..."
# Draw window
FLATPAKAPPS=$(eval `resize` && whiptail \
FLATPAKS=$(eval `resize` && whiptail \
--notags \
--title "Install $NAME" \
--menu "\nWhat ${NAME,,} would you like to install?" \
Expand All @@ -56,11 +56,11 @@ function install_flatpak_apps {

# check exit status
if [ $? = 0 ]; then
echo_message header "Starting '$FLATPAKAPPS' function..."
$FLATPAKAPPS
echo_message header "Starting '$FLATPAKS' function..."
$FLATPAKS
else
# Cancelled
echo_message info "Installation of ${NAME,,} cancelled."
echo_message info "Installation of ${NAME} cancelled."
main
fi
}
23 changes: 14 additions & 9 deletions functions/install_fonts
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,26 @@ function install_mscorefonts {

# Install Fonts
function install_fonts {
echo_message title "Starting 'fonts' function..."
# check exit status
EXITSTATUS=$?
if [ $EXITSTATUS = 0 ]; then
# Draw window
$(eval `resize` && whiptail \
NAME="Fonts"
echo_message title "Starting ${NAME,,}..."
# Draw window
FONTS=$(eval `resize` && whiptail \
--notags \
--title "Install Fonts" \
--title "Install $NAME" \
--menu "\nWhat would you like to do?" \
--ok-button "Install" \
--cancel-button "Go Back" \
$LINES $COLUMNS $(( $LINES - 12 )) \
install_favs_fonts 'Install favourite fonts' \
install_mscorefonts 'Install Microsoft core fonts' \
'install_favs_fonts' 'Install favourite fonts' \
'install_mscorefonts' 'Install Microsoft core fonts' \
3>&1 1>&2 2>&3)
# check exit status
if [ $? = 0 ]; then
echo_message header "Starting '$FONTS' function"
$FONTS
else
# Cancelled
echo_message info "$NAME installation cancelled."
main
fi
}
24 changes: 0 additions & 24 deletions functions/install_functions
Original file line number Diff line number Diff line change
@@ -1,29 +1,5 @@
#!/bin/bash

# Install preferred apps
function install_favs {
# Update the list of packages in 'data/favs.list' to suit your preferences
install_from_list favs "preferred applications" main
}

# Install preferred development tools
function install_favs_dev {
# Update the list of packages in 'data/favs-dev.list' to suit your preferences
install_from_list favs-dev "preferred development tools" main
}

# Install preferred utilities
function install_favs_utils {
# Update the list of packages in 'data/favs-utils.list' to suit your preferences
install_from_list favs-utils "preferred utilities" main
}

# Install preferred GNOME apps
function install_codecs {
# Update the list of packages in 'data/codecs.list' to suit your preferences
install_from_list codecs "multimedia codecs" main
}

# Install from list
function install_from_list() {
# echo_message header "Starting 'install_from_list' function..."
Expand Down
1 change: 1 addition & 0 deletions functions/install_gnome
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ function install_gnome_apps {
# Update the list of packages in 'data/gnome-apps.list' to suit your preferences
install_from_list gnome-apps "preferred GNOME apps" install_gnome
}

# Install GNOME Shell Extensions
function install_shell_extensions {
# Update the list of packages in 'data/gnome-shell-extensions.list' to suit your preferences
Expand Down
6 changes: 3 additions & 3 deletions functions/install_snap_apps
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function install_snap_apps {
NAME="Snap Applications"
echo_message title "Starting installation of ${NAME,,}..."
# Draw window
FLATPAKAPPS=$(eval `resize` && whiptail \
SNAPS=$(eval `resize` && whiptail \
--notags \
--title "Install $NAME" \
--menu "\nWhat ${NAME,,} would you like to install?" \
Expand All @@ -52,8 +52,8 @@ function install_snap_apps {

# check exit status
if [ $? = 0 ]; then
echo_message header "Starting '$FLATPAKAPPS' function..."
$FLATPAKAPPS
echo_message header "Starting '$SNAPS' function..."
$SNAPS
else
# Cancelled
echo_message info "Installation of ${NAME,,} cancelled."
Expand Down
80 changes: 0 additions & 80 deletions functions/node_apps

This file was deleted.

2 changes: 1 addition & 1 deletion ubuntu-post-install-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ function main {
$LINES $COLUMNS $(( $LINES - 12 )) \
'system_update' 'Perform system updates' \
'install_favs' 'Install preferred applications' \
'install_favs_utils' 'Install preferred utilities' \
'install_favs_dev' 'Install preferred development tools' \
'install_favs_utils' 'Install preferred utilities' \
'install_gnome' 'Install preferred GNOME software' \
'install_codecs' 'Install multimedia codecs' \
'install_fonts' 'Install additional fonts' \
Expand Down

0 comments on commit a91a309

Please sign in to comment.