fix(pretty_gcode.sh): use main instead of master (fixes #203)

- pgc uses main instead of master. so checking for origin/master leads to an error

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-05-31 17:27:52 +02:00
parent d6b95c9d10
commit 8ba46fa4ac

View File

@@ -104,7 +104,7 @@ function get_remote_prettygcode_commit() {
[[ ! -d ${PGC_DIR} || ! -d "${PGC_DIR}/.git" ]] && return
cd "${PGC_DIR}" && git fetch origin -q
commit=$(git describe origin/master --always --tags | cut -d "-" -f 1,2)
commit=$(git describe origin/main --always --tags | cut -d "-" -f 1,2)
echo "${commit}"
}