File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,15 +112,6 @@ clean *targets:
112112 fi
113113
114114 if [ " $clean_spm " = " true" ]; then
115- if command -v swift > /dev/null 2>&1 ; then
116- if [ -n " ${BITKIT_SWIFTPM_CACHE_PATH:- } " ]; then
117- mkdir -p " $BITKIT_SWIFTPM_CACHE_PATH "
118- swift package --cache-path " $BITKIT_SWIFTPM_CACHE_PATH " purge-cache
119- else
120- swift package purge-cache
121- fi
122- fi
123-
124115 remove_path " ${BITKIT_DERIVED_DATA_PATH:- build} /SourcePackages"
125116 xcode_derived_data_root=" ${BITKIT_XCODE_DERIVED_DATA_ROOT:- $HOME / Library/ Developer/ Xcode/ DerivedData} "
126117 for path in " $xcode_derived_data_root " /Bitkit-* /SourcePackages; do
Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ if [[ -z "$DERIVED_DATA_PATH" || "$DERIVED_DATA_PATH" == "/" ]]; then
3636fi
3737
3838bool_enabled () {
39- case " ${1,,} " in
39+ local value
40+ value=" $( printf ' %s' " $1 " | tr ' [:upper:]' ' [:lower:]' ) "
41+
42+ case " $value " in
4043 1 | true | yes | y | on)
4144 return 0
4245 ;;
You can’t perform that action at this time.
0 commit comments