mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-12 22:48:41 +00:00
Fix line break and variable expansion in CHANGED variable (#1629)
* Fix line break in CHANGED variable * Fix CHANGED expansion
This commit is contained in:
committed by
Kevin Barabash
parent
0687dd431a
commit
1eecf2d5a5
@@ -13,8 +13,8 @@ post_checkout: &post_checkout
|
|||||||
fi
|
fi
|
||||||
if [[ $BASE_COMMIT ]]; then
|
if [[ $BASE_COMMIT ]]; then
|
||||||
CHANGED=$(git diff --name-only $BASE_COMMIT)
|
CHANGED=$(git diff --name-only $BASE_COMMIT)
|
||||||
echo $CHANGED
|
echo "$CHANGED"
|
||||||
echo 'export CHANGED="$CHANGED"' >> $BASH_ENV
|
echo "export CHANGED=\"$CHANGED\"" >> $BASH_ENV
|
||||||
fi
|
fi
|
||||||
|
|
||||||
node_modules_cache_key: &node_modules_cache_key
|
node_modules_cache_key: &node_modules_cache_key
|
||||||
@@ -39,7 +39,7 @@ screenshotter: &screenshotter
|
|||||||
name: Skip screenshotter if no KaTeX code has been changed
|
name: Skip screenshotter if no KaTeX code has been changed
|
||||||
command: |
|
command: |
|
||||||
if [[ $CHANGED ]]; then
|
if [[ $CHANGED ]]; then
|
||||||
echo $CHANGED | grep -qvE '^contrib/|^docs/|^static/|^website/|^LICENSE|\.md$' || circleci step halt
|
echo "$CHANGED" | grep -qvE '^contrib/|^docs/|^static/|^website/|^LICENSE|\.md$' || circleci step halt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- *restore_node_modules_cache
|
- *restore_node_modules_cache
|
||||||
@@ -76,7 +76,7 @@ jobs:
|
|||||||
name: Skip screenshotter if only documentation has been changed
|
name: Skip screenshotter if only documentation has been changed
|
||||||
command: |
|
command: |
|
||||||
if [[ $CHANGED ]]; then
|
if [[ $CHANGED ]]; then
|
||||||
echo $CHANGED | grep -qvE '^docs/|^LICENSE|\.md$' || circleci step halt
|
echo "$CHANGED" | grep -qvE '^docs/|^LICENSE|\.md$' || circleci step halt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- *restore_node_modules_cache
|
- *restore_node_modules_cache
|
||||||
|
Reference in New Issue
Block a user