Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Jul 2, 2024
1 parent dd42e62 commit 6fa7a32
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ output](bin/dots#L83).
### The initialization bootstrap script

A [initialization script](contrib/initialize) is included in the `contrib`
directory, providing an easy way to initalize your dotfiles into the proper
directory, providing an easy way to initialize your dotfiles into the proper
directory, temporarily setup the `PATH` for the dots, and temporarily source the
bash completion scripts. This way you can quickly setup your dotfiles, activate
your configuration groups, and install the dotfiles themselves
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ type SourceLockfile struct {
// configuration will always be installed.
Groups []string `json:"groups"`

// IntalledFiles is the current list of insatlled configuration files
// InstalledFiles is the current list of installed configuration files
InstalledFiles []string `json:"installed_files"`
}

Expand Down
2 changes: 1 addition & 1 deletion config/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func listIntersect(list1, list2 []string) []string {
return list
}

// removeDupes removes duplicate entires from a list, returning the list
// removeDupes removes duplicate entries from a list, returning the list
// without duplicates, and a list of found duplicates.
func removeDupes(list []string) ([]string, []string) {
newList := []string{}
Expand Down
2 changes: 1 addition & 1 deletion config/validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
var tmpPath = os.TempDir()

// TestMissingSourceDir tests that if the source directory does not exist we
// recieve exactly one error.
// receive exactly one error.
func TestMissingSourceDir(t *testing.T) {
config := &SourceConfig{
SourcePath: filepath.Join(tmpPath, "path-does-not-exist"),
Expand Down
4 changes: 2 additions & 2 deletions installer/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (c *dotfileCompiler) ensureCompiled() error {
data = trimWhitespace(data)

// 2. For any source file that procedes after the first, trim shebang
// markers for cleanlyness of bash configurations. We trim whitespace
// markers for cleanliness of bash configurations. We trim whitespace
// again to remove any space after the shebang.
if i != 0 {
data = trimShebang(data)
Expand Down Expand Up @@ -75,7 +75,7 @@ func (c *dotfileCompiler) Read(p []byte) (int, error) {
return c.content.Read(p)
}

// Close implments the io.Closer interface. Calling close will close all source
// Close implements the io.Closer interface. Calling close will close all source
// files associated to the dotfile.
func (c *dotfileCompiler) Close() error {
var err error
Expand Down
2 changes: 1 addition & 1 deletion installer/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (i *InstalledDotfiles) HadError() bool {
}

// WillInstallDotfile indicates weather the dotfile will be installed if
// InstallDotfile is given the prepared dotfile. This does not guarentee that
// InstallDotfile is given the prepared dotfile. This does not guarantee that
// errors will not occur during installation.
func WillInstallDotfile(dotfile *PreparedDotfile, config InstallConfig) bool {
// Skip dotfiles that we failed to prepare
Expand Down
2 changes: 1 addition & 1 deletion installer/scripts.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
type ExecutedScript struct {
*InstallScript

// ExecutionError represents any error that occured during script execution.
// ExecutionError represents any error that occurred during script execution.
ExecutionError error
}

Expand Down
2 changes: 1 addition & 1 deletion output/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (l *Output) DotfileInfo(dotfile *installer.PreparedDotfile) {
}

if dotfile.OverwritesExisting {
ln(w, "ovewriting existing file")
ln(w, "overwriting existing file")
}

if dotfile.SourcePermissionsDiffer {
Expand Down
4 changes: 2 additions & 2 deletions resolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ func resolveOverrides(dotfiles dotfileMap, overrideSuffix string) {
// If this override file has nothing to override mark it to be
// flattened (the suffix will be removed). We mark it instead of
// flattening it into the dotfiles map here as items added to maps
// may be itterated over if added while iterrating a map.
// may be iterated over if added while iterrating a map.
overridesPath := strings.TrimSuffix(path, overrideSuffix)

// Only if this override overides nothing
// Only if this override overrides nothing
if _, ok := dotfiles[overridesPath]; !ok {
flatten[path] = overridesPath
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# - `latest` Installs the most recent release
# - `vx.x.x` Installs a specific release
#
# 4. Sources bash completion of dots for the current sesion.
# 4. Sources bash completion of dots for the current session.
#
# This script MUST be sourced!

Expand Down

0 comments on commit 6fa7a32

Please sign in to comment.