Skip to content

Commit e7cdb64

Browse files
committed
refactor(bin/clean.sh): clean env by default
1 parent 4bb9f0a commit e7cdb64

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/clean.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ elif (( TARGET_IPHONE_SIMULATOR )); then
1414
platform="iPhoneSimulator"
1515
fi
1616

17+
if (( $# == 0 )); then
18+
do_clean_env_only=1
19+
fi
20+
1721
while (( $# > 0 )); do
1822
declare arg="$1"; shift
1923
if [[ "$arg" = "--arch" ]]; then
@@ -23,6 +27,7 @@ while (( $# > 0 )); do
2327

2428
if [[ "$arg" = "--full" ]]; then
2529
do_full_clean=1
30+
do_clean_env_only=1
2631
continue
2732
elif [[ "$arg" = "--platform" ]]; then
2833
if [[ "$1" = "ios" ]] || [[ "$1" = "iPhoneOS" ]] || [[ "$1" = "iphoneos" ]]; then

0 commit comments

Comments
 (0)