Skip to content

Commit

Permalink
Merge pull request #9 from mariovagomarzal/fix/os-recognition
Browse files Browse the repository at this point in the history
Release 0.2.2 - Fix OS recognition
  • Loading branch information
mariovagomarzal authored Oct 19, 2023
2 parents 5602678 + c1a2a0b commit c1c112d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
cookiecutter-dotfiles-0.2.2 (2023-10-20)

* Fixed #8: The setup process doesn't find the packages scripts
* Now the `setup.sh` script has execution permissions

cookiecutter-dotfiles-0.2.1 (2023-09-23)

* Fixed #3: Explain in the docs that the available operations are not
Expand Down
5 changes: 5 additions & 0 deletions docs/changelog-info.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Cookiecutter Dotfiles

### 0.2.2 <small>October 20, 2023</small>

- Fixed #8: The setup process doesn't find the packages scripts
- Now the `setup.sh` script has execution permissions

### 0.2.1 <small>September 23, 2023</small>

- Fixed #3: Explain in the docs that the available operations are not
Expand Down
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ as the ones you specified when creating the repository.

``` bash
git remote add origin https://github.com/<github_username>/<github_repo>.git
git push -u origin <default_branch>
git push --set-upstream origin <default_branch>
```

??? tip "Git and GitHub documentation"
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# [{{ cookiecutter.author }}](https://github.com/{{ cookiecutter.github_username }})'s dotfiles

This dotfiles repository was created using the [cookiecutter-dotfiles
v0.2.1](https://github.com/mariovagomarzal/cookiecutter-dotfiles/releases/tag/0.2.1)
v0.2.2](https://github.com/mariovagomarzal/cookiecutter-dotfiles/releases/tag/0.2.2)
template.

## Setup
Expand Down
6 changes: 2 additions & 4 deletions {{cookiecutter.project_slug}}/src/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@
# Run the 'setup.sh' script of a given directory.
# Arguments:
# $1: Package (directory) to setup.
# $2: OS name.
# Returns:
# Exit code of the 'setup.sh' script.
# - - - - - - - - - - - - - - - - - - - - - - - - -
setup_package() {
local -r dir="${1}"
local -r os_name="${2}"
local -r os_name=$(get_os_name)

local setup_script=""
local exit_code=0
Expand Down Expand Up @@ -61,15 +60,14 @@ setup_package() {
# directory.
# Arguments:
# $1: Package (directory) to symlink.
# $2: OS name.
# Returns:
# If any of the files fails to symlink, the
# function will return 1. Otherwise, it will
# return 0.
# - - - - - - - - - - - - - - - - - - - - - - - - - - -
symlink_package() {
local -r dir="${1}"
local -r os_name="${2}"
local -r os_name=$(get_os_name)

local symlink_dir=""
local exit_code=0
Expand Down
3 changes: 1 addition & 2 deletions {{cookiecutter.project_slug}}/src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@
# Run the 'install.sh' script of a given directory.
# Arguments:
# $1: Package (directory) to install.
# $2: OS name.
# Returns:
# Exit code of the 'install.sh' script.
# - - - - - - - - - - - - - - - - - - - - - - - - - -
install_package() {
local -r dir="${1}"
local -r os_name="${2}"
local -r os_name=$(get_os_name)

local install_script=""
local exit_code=0
Expand Down
Empty file modified {{cookiecutter.project_slug}}/src/setup.sh
100644 → 100755
Empty file.

0 comments on commit c1c112d

Please # to comment.