Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2058a1b authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

feat: Fix githooks check

parent 92a79709
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
#!/bin/sh
#!/bin/bash

echo '[githooks] formatting files using spotless'
echo
@@ -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"