Loading hooks/pre-commit.sh +2 −2 Original line number Diff line number Diff line #!/bin/sh #!/bin/bash echo '[githooks] formatting files using spotless' echo Loading @@ -9,7 +9,7 @@ changed_files="$(git diff --name-only)" echo # check if there are untracked files if [[ -n "$changed_files" ]]; if [[ ! -z "$changed_files" ]] && [[ -n "$changed_files" ]]; then echo '[githooks] aborting commit, untracked files found:' echo "$changed_files" Loading Loading
hooks/pre-commit.sh +2 −2 Original line number Diff line number Diff line #!/bin/sh #!/bin/bash echo '[githooks] formatting files using spotless' echo Loading @@ -9,7 +9,7 @@ changed_files="$(git diff --name-only)" echo # check if there are untracked files if [[ -n "$changed_files" ]]; if [[ ! -z "$changed_files" ]] && [[ -n "$changed_files" ]]; then echo '[githooks] aborting commit, untracked files found:' echo "$changed_files" Loading