From b95a3c34d00788e9a5eceeffeed2d51666b935f7 Mon Sep 17 00:00:00 2001 From: Philippe Weidmann Date: Tue, 30 Apr 2024 10:34:01 +0200 Subject: [PATCH] fix: Avoid useless bool in script --- scripts/periphery.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/periphery.sh b/scripts/periphery.sh index 0e97d5603..97c6a99d6 100755 --- a/scripts/periphery.sh +++ b/scripts/periphery.sh @@ -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")