Anchor filetype extension in pre-commits.
parent
250f58bcc2
commit
720f15ffc0
|
@ -10,7 +10,7 @@ STAGED=$(
|
||||||
TARGETS=()
|
TARGETS=()
|
||||||
while IFS= read -r FILENAME
|
while IFS= read -r FILENAME
|
||||||
do
|
do
|
||||||
if [[ "$FILENAME" =~ .*\.c ]] || [[ "$FILENAME" == .*\.h ]]; then
|
if [[ "$FILENAME" =~ .*\.c$ ]] || [[ "$FILENAME" == .*\.h$ ]]; then
|
||||||
TARGETS+=("${FILENAME}")
|
TARGETS+=("${FILENAME}")
|
||||||
fi
|
fi
|
||||||
done <<< "$STAGED"
|
done <<< "$STAGED"
|
||||||
|
|
|
@ -10,7 +10,7 @@ STAGED=$(
|
||||||
TARGETS=()
|
TARGETS=()
|
||||||
while IFS= read -r FILENAME
|
while IFS= read -r FILENAME
|
||||||
do
|
do
|
||||||
if [[ "$FILENAME" =~ .*\.exs? ]]; then
|
if [[ "$FILENAME" =~ .*\.exs?$ ]]; then
|
||||||
TARGETS+=("${FILENAME}")
|
TARGETS+=("${FILENAME}")
|
||||||
fi
|
fi
|
||||||
done <<< "$STAGED"
|
done <<< "$STAGED"
|
||||||
|
|
|
@ -10,7 +10,7 @@ STAGED=$(
|
||||||
TARGETS=()
|
TARGETS=()
|
||||||
while IFS= read -r FILENAME
|
while IFS= read -r FILENAME
|
||||||
do
|
do
|
||||||
if [[ "$FILENAME" =~ .*\.jsx? ]] || [[ "$FILENAME" == .*\.tsx? ]]; then
|
if [[ "$FILENAME" =~ .*\.jsx?$ ]] || [[ "$FILENAME" == .*\.tsx?$ ]]; then
|
||||||
TARGETS+=("${FILENAME}")
|
TARGETS+=("${FILENAME}")
|
||||||
fi
|
fi
|
||||||
done <<< "$STAGED"
|
done <<< "$STAGED"
|
||||||
|
|
|
@ -11,9 +11,9 @@ MIX_TARGETS=()
|
||||||
WEB_TARGETS=()
|
WEB_TARGETS=()
|
||||||
while IFS= read -r FILENAME
|
while IFS= read -r FILENAME
|
||||||
do
|
do
|
||||||
if [[ "$FILENAME" =~ .*exs? ]]; then
|
if [[ "$FILENAME" =~ .*exs?$ ]]; then
|
||||||
MIX_TARGETS+=("${FILENAME}")
|
MIX_TARGETS+=("${FILENAME}")
|
||||||
elif [[ "$FILENAME" =~ .*jsx? ]] || [[ "$FILENAME" =~ .*tsx? ]]; then
|
elif [[ "$FILENAME" =~ .*jsx?$ ]] || [[ "$FILENAME" =~ .*tsx?$ ]]; then
|
||||||
WEB_TARGETS+=("${FILENAME}")
|
WEB_TARGETS+=("${FILENAME}")
|
||||||
fi
|
fi
|
||||||
done <<< "$STAGED"
|
done <<< "$STAGED"
|
||||||
|
|
|
@ -10,7 +10,7 @@ STAGED=$(
|
||||||
TARGETS=()
|
TARGETS=()
|
||||||
while IFS= read -r FILENAME
|
while IFS= read -r FILENAME
|
||||||
do
|
do
|
||||||
if [[ "$FILENAME" =~ .*\.py ]]; then
|
if [[ "$FILENAME" =~ .*\.py$ ]]; then
|
||||||
TARGETS+=("${FILENAME}")
|
TARGETS+=("${FILENAME}")
|
||||||
fi
|
fi
|
||||||
done <<< "$STAGED"
|
done <<< "$STAGED"
|
||||||
|
|
Loading…
Reference in New Issue