diff --git a/get_addons b/get_addons index 87ad8777895993c20aea13420b5ad374f02a586d..7d86bb67d217466ca0d87cff783a0f773a203a6e 100644 --- a/get_addons +++ b/get_addons @@ -25,11 +25,11 @@ modules="$@" set +e git clone --branch "${ref}" --filter=tree:0 "${repo}" "${TMP_REPO_PATH}" -if [ "$?" != 0 ]; then +if [ "$?" -ne 0 ]; then git clone --filter=tree:0 "${repo}" "${TMP_REPO_PATH}" - if [ "$?" != 0 ]; then + if [ "$?" -ne 0 ]; then git clone --single-branch --branch "${ref}" --depth 1 "${repo}" "${TMP_REPO_PATH}" - if [ "$?" != 0 ]; then + if [ "$?" -ne 0 ]; then git clone "${repo}" "${TMP_REPO_PATH}" fi fi