File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -224,6 +224,21 @@ function toupper() {
224
224
echo " $@ " | tr ' [:lower:]' ' [:upper:]'
225
225
}
226
226
227
+ function true_false() {
228
+ case " $1 " in
229
+ false | FALSE | 0 | " " )
230
+ echo " FALSE"
231
+ ;;
232
+ true | TRUE | 1)
233
+ echo " TRUE"
234
+ ;;
235
+ * )
236
+ echo " true_false: unknown value: $1 " >&2
237
+ exit 1
238
+ ;;
239
+ esac
240
+ }
241
+
227
242
function to_varname() {
228
243
toupper " ${1// -/ _} "
229
244
}
@@ -815,21 +830,6 @@ function not() {
815
830
fi
816
831
}
817
832
818
- function true_false() {
819
- case " $1 " in
820
- false | FALSE | 0 | " " )
821
- echo " FALSE"
822
- ;;
823
- true | TRUE | 1)
824
- echo " TRUE"
825
- ;;
826
- * )
827
- echo " true_false: unknown value: $1 " >&2
828
- exit 1
829
- ;;
830
- esac
831
- }
832
-
833
833
function false_true() {
834
834
if [[ $( true_false " $1 " ) = " TRUE" ]]; then
835
835
echo " FALSE"
You can’t perform that action at this time.
0 commit comments