mirror of
https://github.com/supabase/setup-cli.git
synced 2026-02-09 03:45:28 +00:00
The original sample hides the result of `git diff`. So if `git diff` returns an error(e.g. invalid file name specified), the result will be success. We can use `--exit-code ` option if we only want to know whether differences exist without depending on other commands. Ref: https://git-scm.com/docs/git-diff#Documentation/git-diff.txt---exit-code