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 typos in download-customer-package code #361

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions tools/carto-download-customer-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function check_deps()
{
for DEP in ${DEPENDENCIES}; do
# shellcheck disable=SC2261,SC2210
command -v "${DEP}" 2&>1 > /dev/null || \
command -v "${DEP}" > /dev/null 2>&1 || \
{ echo -e "\n[ERROR]: missing dependency <${DEP}>. Please, install it.\n"; exit 1;}
done
}
Expand Down Expand Up @@ -57,7 +57,7 @@ PROGNAME="$(basename "$0")"
# use getopt and store the output into $OPTS
# note the use of -o for the short options, --long for the long name options
# and a : for any option that takes a parameter
OPTS=$(getopt -o "hd:s" --long "help,dir,selfhosted-mode" -n "$PROGNAME" -- "$@")
OPTS=$(getopt -o "hd:s:" --long "help,dir:,selfhosted-mode:" -n "$PROGNAME" -- "$@")

# Check getopt errors
# shellcheck disable=SC2166,SC2181
Expand All @@ -77,7 +77,7 @@ while true; do
case "$1" in
-h | --help ) usage; exit; ;;
-d | --dir) FILE_DIR="${2%/}"; shift 2 ;;
-s | --selfhosted-mode) SELFHOSTED_MODE="$3"; shift 2 ;;
-s | --selfhosted-mode) SELFHOSTED_MODE="$2"; shift 2 ;;
-- ) shift ;;
* ) break ;;
esac
Expand Down