Skip to content

Commit 25d1234

Browse files
committed
Remove unecessary deps
1 parent 890cff6 commit 25d1234

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

scripts/check_unstaged.sh

+8-11
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
#!/bin/bash
22

33
set -euo pipefail
4-
# shellcheck source=scripts/lib.sh
5-
source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
6-
cdroot
74

85
FILES="$(git ls-files --other --modified --exclude-standard)"
96
if [[ "$FILES" != "" ]]; then
107
mapfile -t files <<<"$FILES"
118

12-
log
13-
log "The following files contain unstaged changes:"
14-
log
9+
echo
10+
echo "The following files contain unstaged changes:"
11+
echo
1512
for file in "${files[@]}"; do
16-
log " - $file"
13+
echo " - $file"
1714
done
1815

19-
log
20-
log "These are the changes:"
21-
log
16+
echo
17+
echo "These are the changes:"
18+
echo
2219
for file in "${files[@]}"; do
2320
git --no-pager diff "$file" 1>&2
2421
done
2522

26-
log
23+
echo
2724
error "Unstaged changes, see above for details."
2825
fi

0 commit comments

Comments
 (0)