This needs to be
```bash
    if [ "$TEMP_CONFIG_DIR" = "null" ]; then
        TEMP_CONFIG_DIR="${SALT_GIT_CHECKOUT_DIR}/conf/"
        CONFIG_MINION_FUNC="config_minion"
    fi
```
This way you don't ignore `--config-dir`.

This is from my head, so, it's untested, but I think this is how it should be.