Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Typo #140

Merged
merged 1 commit into from
Aug 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/dot
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [[ -z "${SLOTH_PATH:-${DOTLY_PATH:-}}" || ! -d "${SLOTH_PATH:-${DOTLY_PATH:-}
DOTLY_PATH="$SLOTH_PATH"

if [[ ! -d "$SLOTH_PATH" || ! -x "${SLOTH_PATH}/bin/dot" ]]; then
echo "Error: Could not find the SLOTH source code."
echo "Error: Could not find the .Sloth source code."
exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion scripts/core/install
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ if ! ${ignore_restoration:-false} && ! ${IGNORE_RESTORATION:-false}; then
fi

output::empty_line
output::answer '🥳 🎉 SLOTH installed sucessfully'
output::answer '🥳 🎉 .Sloth installed sucessfully'
output::empty_line

output::answer "Trying to load .Sloth"
Expand Down
4 changes: 2 additions & 2 deletions scripts/core/migration
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ then
to_version="$(sloth_update::get_current_version)"
rm -f "${SLOTH_UPDATED_FILE:-$DOTFILES_PATH/.sloth_updated}"
output::empty_line
output::write " 🥳 🎉 🍾 SLOTH UPDATED 🥳 🎉 🍾 "
output::write " 🥳 🎉 🍾 .Sloth updated 🥳 🎉 🍾 "
output::empty_line
output::answer "Detected a migration script: executing the script."
else
Expand Down Expand Up @@ -90,7 +90,7 @@ if ${updated:-false}; then
if [[ -f "${SLOTH_UPDATED_FILE:-$DOTFILES_PATH/.sloth_updated}" ]]; then
rm -f "${SLOTH_UPDATED_FILE:-$DOTFILES_PATH/.sloth_updated}"
output::empty_line
output::write " 🥳 🎉 🍾 SLOTH UPDATED 🥳 🎉 🍾 "
output::write " 🥳 🎉 🍾 .Sloth updated 🥳 🎉 🍾 "
output::empty_line
fi
fi
4 changes: 2 additions & 2 deletions scripts/core/src/sloth_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ sloth_update::async() {
fi

output::empty_line
output::write " 🥳 🎉 🍾 SLOTH UPDATED 🥳 🎉 🍾 "
output::write " 🥳 🎉 🍾 .Sloth updated 🥳 🎉 🍾 "
output::empty_line

elif [[ -f "${SLOTH_UPDATE_AVAILABE_FILE:-"${DOTFILES_PATH:-${HOME}}/.sloth_update_available"}" ]]; then
Expand All @@ -304,7 +304,7 @@ sloth_update::async() {
touch "${SLOTH_UPDATE_AVAILABE_FILE:-"${DOTFILES_PATH:-${HOME}}/.sloth_update_available"}"
output::empty_line
output::write " ---------------------------------------------"
output::write "| 🥳🎉🍾 NEW SLOTH VERSION AVAILABLE 🥳🎉🍾 |"
output::write "| 🥳🎉🍾 New .Sloth version available 🥳🎉🍾 |"
output::write " ---------------------------------------------"
output::empty_line
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/init/src/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ENABLED_INIT_SCRIPTS_PATH="${ENABLED_INIT_SCRIPTS_PATH:-$DOTFILES_PATH/shell/ini
exit 1

[[ ! -d "$SLOTH_INIT_SCRIPTS_PATH" ]] &&
output::error "The init scripts of SLOTH does not exists." &&
output::error "The init scripts of .Sloth does not exists." &&
output::write "Try with \`dot self migration v2.0.0\` first." &&
exit 1

Expand Down
2 changes: 1 addition & 1 deletion scripts/script/create
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ is_valid_name() {
! [[ "${name:0:1}" == "_" || "${name:0:1}" == "." ]]
}

##? Sloth script creator. To generate a .Sloth compatible script use \`--dotly\` option.
##? .Sloth script creator. To generate a .Sloth compatible script use \`--dotly\` option.
##?
##?
##? Usage:
Expand Down
4 changes: 2 additions & 2 deletions shell/init-sloth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,13 @@ elif [[ -r "/etc/profile.d/nix.sh" ]]; then
fi
###### End of load nix package manager if available ######

###### SLOTH bin path first & Remove duplicated PATHs ######
###### .Sloth bin path first & Remove duplicated PATHs ######
PATH="${SLOTH_PATH:-${DOTLY_PATH:-}}/bin:$PATH"

# Remove duplicated PATH's
PATH=$(printf %s "$PATH" | awk -v RS=':' -v ORS='' '!a[$0]++ {if (NR>1) printf(":"); printf("%s", $0) }')
export PATH
###### End of SLOTH bin path first & Remove duplicated PATHs ######
###### End of .Sloth bin path first & Remove duplicated PATHs ######

###### User aliases & functions ######
{ [[ "${DOTLY_ENV:-PROD}" == "CI" ]] && echo "Loading user aliases"; } || true
Expand Down