Fixed verification of Homebrew formulas.
The `verify_homebrew_formulas` function will no longer error when checking Homebrew formulas due to invalid function name.
This commit is contained in:
@@ -43,7 +43,7 @@ process_option() {
|
|||||||
'R')
|
'R')
|
||||||
bin/restore_backup;;
|
bin/restore_backup;;
|
||||||
'c')
|
'c')
|
||||||
verify_homebrews
|
verify_homebrew_formulas
|
||||||
verify_applications
|
verify_applications
|
||||||
verify_extensions;;
|
verify_extensions;;
|
||||||
'C')
|
'C')
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ verify_homebrew() {
|
|||||||
}
|
}
|
||||||
export -f verify_homebrew
|
export -f verify_homebrew
|
||||||
|
|
||||||
# Checks for missing Homebrew software.
|
# Checks for missing Homebrew formulas.
|
||||||
verify_homebrews() {
|
verify_homebrew_formulas() {
|
||||||
printf "Checking Homebrew software...\n"
|
printf "Checking Homebrew formulas...\n"
|
||||||
|
|
||||||
local applications="$(brew list)"
|
local applications="$(brew list)"
|
||||||
|
|
||||||
@@ -39,11 +39,11 @@ verify_homebrews() {
|
|||||||
|
|
||||||
verify_homebrew "$application" "${applications[*]}"
|
verify_homebrew "$application" "${applications[*]}"
|
||||||
fi
|
fi
|
||||||
done < "$MAC_OS_CONFIG_PATH/bin/install_homebrew"
|
done < "$MAC_OS_CONFIG_PATH/bin/install_homebrew_formulas"
|
||||||
|
|
||||||
printf "Homebrew check complete.\n"
|
printf "Homebrew check complete.\n"
|
||||||
}
|
}
|
||||||
export -f verify_homebrews
|
export -f verify_homebrew_formulas
|
||||||
|
|
||||||
# Verifies application exists.
|
# Verifies application exists.
|
||||||
# Parameters:
|
# Parameters:
|
||||||
|
|||||||
Reference in New Issue
Block a user