From 72f5fcb03e24152130cc36ff83fc87a391f6585d Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Sun, 28 Oct 2018 13:35:51 -0600 Subject: [PATCH] Removed unnecessary source code comments. Reduced stating the obvious (in many cases) in order to improve readability and reduce lines of code. --- bin/apply_basic_settings | 3 --- bin/apply_default_settings | 3 --- bin/create_boot_disk | 2 -- bin/install_app_store | 3 --- bin/install_applications | 3 --- bin/install_dev_tools | 1 - bin/install_extensions | 3 --- bin/install_homebrew_casks | 3 --- bin/install_homebrew_formulas | 3 --- bin/restore_backup | 3 --- bin/run | 6 ------ bin/setup_software | 3 --- lib/installers.sh | 1 - lib/options.sh | 1 - lib/reinstallers.sh | 1 - lib/settings.sh | 2 -- lib/uninstallers.sh | 1 - lib/utilities.sh | 1 - lib/verifiers.sh | 1 - 19 files changed, 44 deletions(-) diff --git a/bin/apply_basic_settings b/bin/apply_basic_settings index 6342712..decf1bc 100755 --- a/bin/apply_basic_settings +++ b/bin/apply_basic_settings @@ -1,16 +1,13 @@ #! /usr/bin/env bash -# DESCRIPTION # Applies basic system settings. -# SETTINGS set -o nounset set -o errexit set -o pipefail IFS=$'\n\t' SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/apply_basic_settings" -# EXECUTION if [[ -x "$SCRIPT_PATH" ]]; then "$SCRIPT_PATH" else diff --git a/bin/apply_default_settings b/bin/apply_default_settings index 856488a..cde08f8 100755 --- a/bin/apply_default_settings +++ b/bin/apply_default_settings @@ -1,16 +1,13 @@ #! /usr/bin/env bash -# DESCRIPTION # Applies default settings. -# SETTINGS set -o nounset set -o errexit set -o pipefail IFS=$'\n\t' SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/apply_default_settings" -# EXECUTION if [[ -x "$SCRIPT_PATH" ]]; then "$SCRIPT_PATH" else diff --git a/bin/create_boot_disk b/bin/create_boot_disk index db395a6..1f5b4c2 100755 --- a/bin/create_boot_disk +++ b/bin/create_boot_disk @@ -1,9 +1,7 @@ #! /usr/bin/env bash -# DESCRIPTION # Creates macOS boot disk. -# EXECUTION printf "macOS Boot Disk Tips\n" printf " - Use a USB drive (8GB or higher).\n" printf " - Use Disk Utility to format the USB drive as \"Mac OS Extended (Journaled)\".\n" diff --git a/bin/install_app_store b/bin/install_app_store index 7cde7de..e62b14e 100755 --- a/bin/install_app_store +++ b/bin/install_app_store @@ -1,16 +1,13 @@ #! /usr/bin/env bash -# DESCRIPTION # Installs App Store software. -# SETTINGS set -o nounset set -o errexit set -o pipefail IFS=$'\n\t' SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/install_app_store" -# EXECUTION if [[ -x "$SCRIPT_PATH" ]]; then "$SCRIPT_PATH" else diff --git a/bin/install_applications b/bin/install_applications index 5a0f0a0..78cc330 100755 --- a/bin/install_applications +++ b/bin/install_applications @@ -1,16 +1,13 @@ #! /usr/bin/env bash -# DESCRIPTION # Installs applications. -# SETTINGS set -o nounset set -o errexit set -o pipefail IFS=$'\n\t' SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/install_applications" -# EXECUTION if [[ -x "$SCRIPT_PATH" ]]; then "$SCRIPT_PATH" else diff --git a/bin/install_dev_tools b/bin/install_dev_tools index 5f34627..6b11ddf 100755 --- a/bin/install_dev_tools +++ b/bin/install_dev_tools @@ -1,6 +1,5 @@ #! /usr/bin/env bash -# DESCRIPTION # Installs development tooling requirements. printf "Installing Xcode CLI tools...\n" diff --git a/bin/install_extensions b/bin/install_extensions index d8a8feb..ad6e05f 100755 --- a/bin/install_extensions +++ b/bin/install_extensions @@ -1,16 +1,13 @@ #! /usr/bin/env bash -# DESCRIPTION # Installs application extensions. -# SETTINGS set -o nounset set -o errexit set -o pipefail IFS=$'\n\t' SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/install_extensions" -# EXECUTION if [[ -x "$SCRIPT_PATH" ]]; then "$SCRIPT_PATH" else diff --git a/bin/install_homebrew_casks b/bin/install_homebrew_casks index 3a3daa5..690015b 100755 --- a/bin/install_homebrew_casks +++ b/bin/install_homebrew_casks @@ -1,16 +1,13 @@ #! /usr/bin/env bash -# DESCRIPTION # Installs Homebrew Cask software. -# SETTINGS set -o nounset set -o errexit set -o pipefail IFS=$'\n\t' SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/install_homebrew_casks" -# EXECUTION if [[ -x "$SCRIPT_PATH" ]]; then "$SCRIPT_PATH" else diff --git a/bin/install_homebrew_formulas b/bin/install_homebrew_formulas index 88ffb1a..a2a8a9a 100755 --- a/bin/install_homebrew_formulas +++ b/bin/install_homebrew_formulas @@ -1,16 +1,13 @@ #! /usr/bin/env bash -# DESCRIPTION # Installs Homebrew Formula software. -# SETTINGS set -o nounset set -o errexit set -o pipefail IFS=$'\n\t' SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/install_homebrew_formulas" -# EXECUTION if [[ -x "$SCRIPT_PATH" ]]; then "$SCRIPT_PATH" else diff --git a/bin/restore_backup b/bin/restore_backup index 799a306..2593ca8 100755 --- a/bin/restore_backup +++ b/bin/restore_backup @@ -1,16 +1,13 @@ #! /usr/bin/env bash -# DESCRIPTION # Performs restoration of backup data. -# SETTINGS set -o nounset set -o errexit set -o pipefail IFS=$'\n\t' SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/restore_backup" -# EXECUTION if [[ -x "$SCRIPT_PATH" ]]; then "$SCRIPT_PATH" else diff --git a/bin/run b/bin/run index d254bd3..db12913 100755 --- a/bin/run +++ b/bin/run @@ -1,12 +1,7 @@ #! /usr/bin/env bash -# DESCRIPTION # Executes the command line interface. -# USAGE -# ./run.sh OPTION - -# LIBRARY source lib/installers.sh source lib/options.sh source lib/reinstallers.sh @@ -28,7 +23,6 @@ else exit 1 fi -# EXECUTION while true; do if [[ $# == 0 ]]; then printf "\nUsage: run OPTION\n" diff --git a/bin/setup_software b/bin/setup_software index d9bfb9c..2d227ad 100755 --- a/bin/setup_software +++ b/bin/setup_software @@ -1,16 +1,13 @@ #! /usr/bin/env bash -# DESCRIPTION # Sets up and launches (if necessary) installed software. -# SETTINGS set -o nounset set -o errexit set -o pipefail IFS=$'\n\t' SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/setup_software" -# EXECUTION if [[ -x "$SCRIPT_PATH" ]]; then "$SCRIPT_PATH" else diff --git a/lib/installers.sh b/lib/installers.sh index e51a6c6..61cfe35 100644 --- a/lib/installers.sh +++ b/lib/installers.sh @@ -1,6 +1,5 @@ #! /usr/bin/env bash -# DESCRIPTION # Defines software installer functions. # Installs an application via a DMG file. diff --git a/lib/options.sh b/lib/options.sh index bd81bcb..9a42d79 100644 --- a/lib/options.sh +++ b/lib/options.sh @@ -1,6 +1,5 @@ #! /usr/bin/env bash -# DESCRIPTION # Defines command line prompt options. # Process option selection. diff --git a/lib/reinstallers.sh b/lib/reinstallers.sh index 694f778..6734695 100644 --- a/lib/reinstallers.sh +++ b/lib/reinstallers.sh @@ -1,6 +1,5 @@ #! /usr/bin/env bash -# DESCRIPTION # Defines reinstall functions. # Reinstall application. diff --git a/lib/settings.sh b/lib/settings.sh index 4263863..ce6ee90 100644 --- a/lib/settings.sh +++ b/lib/settings.sh @@ -1,9 +1,7 @@ #! /usr/bin/env bash -# DESCRIPTION # Defines global settings. -# SETTINGS # General set -o nounset set -o errexit diff --git a/lib/uninstallers.sh b/lib/uninstallers.sh index ae8a923..9415ea8 100644 --- a/lib/uninstallers.sh +++ b/lib/uninstallers.sh @@ -1,6 +1,5 @@ #! /usr/bin/env bash -# DESCRIPTION # Defines uninstall functions. # Uninstalls selected application. diff --git a/lib/utilities.sh b/lib/utilities.sh index 9202c23..171e48c 100644 --- a/lib/utilities.sh +++ b/lib/utilities.sh @@ -1,6 +1,5 @@ #! /usr/bin/env bash -# DESCRIPTION # Defines general utility functions. # Answers the full install path (including file name) for file name. diff --git a/lib/verifiers.sh b/lib/verifiers.sh index bcaf2b4..0fe162d 100644 --- a/lib/verifiers.sh +++ b/lib/verifiers.sh @@ -1,6 +1,5 @@ #! /usr/bin/env bash -# DESCRIPTION # Defines verification/validation functions. # Checks for missing Homebrew formulas.