Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb286cd150 | ||
|
|
c2c9ebf14e | ||
|
|
6992d11d1c | ||
|
|
f6428c7245 | ||
|
|
5e26d111c1 |
@@ -1,3 +1,12 @@
|
||||
# 7.2.0 (2019-08-01)
|
||||
|
||||
- Added file install function.
|
||||
|
||||
# 7.1.2 (2019-06-01)
|
||||
|
||||
- Updated contributing documentation.
|
||||
- Updated to Git Cop 3.5.0.
|
||||
|
||||
# 7.1.1 (2019-05-01)
|
||||
|
||||
- Added project icon to README.
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
# Contributing
|
||||
|
||||
Thanks for taking an interest in this open source project. Your support and involvement is greatly
|
||||
appreciated. The following sections detail what you need to know in order to contribute.
|
||||
appreciated. The following details what you need to know in order to contribute.
|
||||
|
||||
## Code
|
||||
|
||||
1. Read the project README before starting.
|
||||
1. Fork the `master` branch of this repository and clone the fork locally.
|
||||
1. Ensure there are no setup, usage, and/or test issues.
|
||||
1. Fork and clone the `master` branch of this repository locally.
|
||||
1. Ensure there are no local setup, usage, and/or test issues.
|
||||
1. Add tests for new functionality and ensure they pass.
|
||||
1. Submit a pull request, follow the instructions it provides, and ensure the build passes.
|
||||
1. Submit a pull request, follow the instructions provided, and ensure the build passes.
|
||||
|
||||
## Issues
|
||||
|
||||
- Submit an issue via the GitHub Issues tab (assuming one does not
|
||||
already exist) and follow the instructions it provides.
|
||||
- Submit an issue via the GitHub Issues tab (assuming one does not already exist) and follow the
|
||||
instructions provided.
|
||||
|
||||
## Feedback
|
||||
|
||||
- Expect a response within one to three business days.
|
||||
- Changes, alternatives, and/or improvements might be suggested upon review.
|
||||
- Changes, alternatives, and/or improvements may be suggested upon review.
|
||||
|
||||
2
Gemfile
2
Gemfile
@@ -3,4 +3,4 @@
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "rake", "~> 12.0"
|
||||
gem "git-cop", "~> 3.0"
|
||||
gem "git-cop", "~> 3.5"
|
||||
|
||||
@@ -76,7 +76,7 @@ Current Version (stable):
|
||||
|
||||
git clone https://github.com/bkuhlmann/mac_os.git
|
||||
cd mac_os
|
||||
git checkout 7.1.1
|
||||
git checkout 7.2.0
|
||||
|
||||
Master Version (unstable):
|
||||
|
||||
|
||||
@@ -123,7 +123,6 @@ install_program() {
|
||||
local install_path=$(get_install_path "$program_name")
|
||||
|
||||
if [[ ! -e "$install_path" ]]; then
|
||||
printf "Installing: $install_path...\n"
|
||||
download_file "$url" "$program_name"
|
||||
mv "$MAC_OS_WORK_PATH/$program_name" "$install_path"
|
||||
chmod 755 "$install_path"
|
||||
@@ -172,6 +171,23 @@ install_git_project() {
|
||||
}
|
||||
export -f install_git_project
|
||||
|
||||
# Installs a single file.
|
||||
# Parameters: $1 (required) - URL, $2 (required) - Install path.
|
||||
install_file() {
|
||||
local file_url="$1"
|
||||
local file_name=$(get_file_name "$1")
|
||||
local install_path="$2"
|
||||
|
||||
if [[ ! -e "$install_path" ]]; then
|
||||
download_file "$file_url" "$file_name"
|
||||
mkdir -p $(dirname "$install_path")
|
||||
mv "$MAC_OS_WORK_PATH/$file_name" "$install_path"
|
||||
printf "Installed: $file_name.\n"
|
||||
verify_path "$install_path"
|
||||
fi
|
||||
}
|
||||
export -f install_file
|
||||
|
||||
# Downloads remote file to local disk.
|
||||
# Parameters: $1 (required) - URL, $2 (required) - File name, $3 (optional) - HTTP header.
|
||||
download_file() {
|
||||
|
||||
Reference in New Issue
Block a user