Skip to content

Commit

Permalink
Fix function definition order
Browse files Browse the repository at this point in the history
Function was used before its definition
  • Loading branch information
alexpovel committed Oct 15, 2021
1 parent b50eb6f commit f10005e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/image/texlive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ usage() {
echo "Usage: $0 get_installer|install latest|version (YYYY)"
}

# From: https://stackoverflow.com/a/2990533/11477374
echoerr() { echo "$@" 1>&2; }

check_path() {
# The following test assumes the most basic program, `tex`, is present, see also
# https://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-380003.5
Expand All @@ -29,9 +32,6 @@ if [[ $# != 2 ]]; then
exit 64
fi

# From: https://stackoverflow.com/a/2990533/11477374
echoerr() { echo "$@" 1>&2; }

# Bind CLI arguments to explicit names:
ACTION=${1}
VERSION=${2}
Expand Down

0 comments on commit f10005e

Please sign in to comment.