From: Alexander Potts <30532361+jakkso@users.noreply.github.com> Date: Fri, 13 May 2022 23:50:29 +0000 (-0600) Subject: Fix typo X-Git-Tag: v0.2.0.0~84^2 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/commitdiff_plain/f4f22f605aa6920d6fe657fb54886887edba2862 Fix typo --- diff --git a/xdg-ninja.sh b/xdg-ninja.sh index 2069558..5540516 100755 --- a/xdg-ninja.sh +++ b/xdg-ninja.sh @@ -44,23 +44,23 @@ for i in "$@"; do done if [[ -z "${XDG_DATA_HOME}" ]]; then - printf '\e[1;36m%s\e[1;0m\n' "The \$XDG_DATA_HOME enviornment variable is not set, make sure to add it to your shell's configuration before setting any of the other enviornment variables!" + printf '\e[1;36m%s\e[1;0m\n' "The \$XDG_DATA_HOME environment variable is not set, make sure to add it to your shell's configuration before setting any of the other environment variables!" printf '\e[1;36m ⤷ \e[1mThe recommended value is: \e[1;3m$HOME/.local/share\e[1;0m\n' fi if [[ -z "${XDG_CONFIG_HOME}" ]]; then - printf '\e[1;36m%s\e[1;0m\n' "The \$XDG_CONFIG_HOME enviornment variable is not set, make sure to add it to your shell's configuration before setting any of the other enviornment variables!" + printf '\e[1;36m%s\e[1;0m\n' "The \$XDG_CONFIG_HOME environment variable is not set, make sure to add it to your shell's configuration before setting any of the other environment variables!" printf '\e[1;36m ⤷ \e[1mThe recommended value is: \e[1;3m$HOME/.config\e[1;0m\n' fi if [[ -z "${XDG_STATE_HOME}" ]]; then - printf '\e[1;36m%s\e[1;0m\n' "The \$XDG_STATE_HOME enviornment variable is not set, make sure to add it to your shell's configuration before setting any of the other enviornment variables!" + printf '\e[1;36m%s\e[1;0m\n' "The \$XDG_STATE_HOME environment variable is not set, make sure to add it to your shell's configuration before setting any of the other environment variables!" printf '\e[1;36m ⤷ \e[1mThe recommended value is: \e[1;3m$HOME/.local/state\e[1;0m\n' fi if [[ -z "${XDG_CACHE_HOME}" ]]; then - printf '\e[1;36m%s\e[1;0m\n' "The \$XDG_CACHE_HOME enviornment variable is not set, make sure to add it to your shell's configuration before setting any of the other enviornment variables!" + printf '\e[1;36m%s\e[1;0m\n' "The \$XDG_CACHE_HOME environment variable is not set, make sure to add it to your shell's configuration before setting any of the other environment variables!" printf '\e[1;36m ⤷ \e[1mThe recommended value is: \e[1;3m$HOME/.cache\e[1;0m\n' fi if [[ -z "${XDG_RUNTIME_DIR}" ]]; then - printf '\e[1;36m%s\e[1;0m\n' "The \$XDG_RUNTIME_DIR enviornment variable is not set, make sure to add it to your shell's configuration before setting any of the other enviornment variables!" + printf '\e[1;36m%s\e[1;0m\n' "The \$XDG_RUNTIME_DIR environment variable is not set, make sure to add it to your shell's configuration before setting any of the other environment variables!" printf '\e[1;36m ⤷ \e[1mThe recommended value is: \e[1;3m/run/user/$UID\e[1;0m\n' fi @@ -69,7 +69,7 @@ if ! command -v jq &>/dev/null; then exit fi -# Function to expand enviornment variables in string +# Function to expand environment variables in string # https://stackoverflow.com/a/20316582/11110290 apply_shell_expansion() { declare data="$1"