Skip to content

Commit 66b69e1

Browse files
committed
fix check_unstaged.sh
1 parent 2b53bb3 commit 66b69e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

check_unstaged.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
3+
34
FILES=()
45
IFS=$'\n' read -r -d '' -a FILES < <(git ls-files --other --modified --exclude-standard && printf '\0')
5-
# FILES="$(git ls-files --other --modified --exclude-standard)"
6-
if [[ "$FILES" != "" ]]; then
6+
if [[ ${#FILES[@]} -gt 0 ]]; then
77

88
echo
99
echo "The following files contain unstaged changes:"

0 commit comments

Comments
 (0)