Skip to content

Commit

Permalink
fix: Avoid useless bool in script
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeWeidmann committed Apr 30, 2024
1 parent 4ada230 commit b95a3c3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions scripts/periphery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,8 @@ tuist install
tuist generate -n


# Check if the "--full-dir" argument is provided
if [[ "$1" == "--full-dir" ]]; then
full_dir=true
else
full_dir=false
fi

# Perform the periphery scan and handle directory removal based on argument
if "$full_dir"; then
if [[ "$1" == "--full-dir" ]]; then
detailedOutput=$(periphery scan --quiet --enable-unused-import-analysis)
else
detailedOutput=$(periphery scan --quiet --enable-unused-import-analysis | sed "s|$(pwd)/||g")
Expand Down

0 comments on commit b95a3c3

Please sign in to comment.