Skip to content

Commit

Permalink
fix: icons 빌드 시 react 디렉토리가 없는 경우를 에러 분기처리하지 않도록 수정 (#ATR-588)
Browse files Browse the repository at this point in the history
  • Loading branch information
SWARVY committed Jul 29, 2024
1 parent 76fe905 commit af5547f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/icons/renew.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ for sub_dir in "${SUB_DIRS[@]}"; do
SVG_DIR="$BASE_DIR/$sub_dir/svg"
REACT_DIR="$BASE_DIR/$sub_dir/react"

if [ -d "$SVG_DIR" ] && [ -d "$REACT_DIR" ]; then
if [ -d "$SVG_DIR" ]; then
svg_count=$(count_files "$SVG_DIR")
react_count=$(count_files "$REACT_DIR")

Expand All @@ -23,7 +23,7 @@ for sub_dir in "${SUB_DIRS[@]}"; do
break
fi
else
echo "[🔮icons] Directory isn't found! current SVG_DIR=[$SVG_DIR] & REACT_DIR=[$REACT_DIR]"
echo "[🔮icons] SVG Directory isn't found!"
exit 1
fi
done
Expand Down

0 comments on commit af5547f

Please sign in to comment.