From de01f34256e852f22b23bca84783536346b304d1 Mon Sep 17 00:00:00 2001 From: Gabriel Trabanco Llano Date: Mon, 9 Aug 2021 01:54:21 +0200 Subject: [PATCH] Changed sloth typo --- bin/dot | 2 +- scripts/core/install | 2 +- scripts/core/migration | 4 ++-- scripts/core/src/sloth_update.sh | 4 ++-- scripts/init/src/init.sh | 2 +- scripts/script/create | 2 +- shell/init-sloth.sh | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/bin/dot b/bin/dot index 6584e11e9..3d72a1a3a 100755 --- a/bin/dot +++ b/bin/dot @@ -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 diff --git a/scripts/core/install b/scripts/core/install index f656d297f..56d5c7333 100755 --- a/scripts/core/install +++ b/scripts/core/install @@ -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" diff --git a/scripts/core/migration b/scripts/core/migration index a11ebd47c..591bd43f5 100755 --- a/scripts/core/migration +++ b/scripts/core/migration @@ -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 @@ -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 diff --git a/scripts/core/src/sloth_update.sh b/scripts/core/src/sloth_update.sh index 3e5ecfacf..145e68743 100644 --- a/scripts/core/src/sloth_update.sh +++ b/scripts/core/src/sloth_update.sh @@ -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 @@ -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 diff --git a/scripts/init/src/init.sh b/scripts/init/src/init.sh index 7491aadf5..acba34dd0 100644 --- a/scripts/init/src/init.sh +++ b/scripts/init/src/init.sh @@ -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 diff --git a/scripts/script/create b/scripts/script/create index 8f8d2a853..1a158c28b 100755 --- a/scripts/script/create +++ b/scripts/script/create @@ -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: diff --git a/shell/init-sloth.sh b/shell/init-sloth.sh index eabd7e915..cd42219d0 100644 --- a/shell/init-sloth.sh +++ b/shell/init-sloth.sh @@ -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