Browse Source

kamctl: option to enable kamctl test from shell variable

- set KAMCTL_TEST variable in shell
Daniel-Constantin Mierla 6 năm trước cách đây
mục cha
commit
4968e89941
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      utils/kamctl/kamctl

+ 5 - 1
utils/kamctl/kamctl

@@ -11,7 +11,11 @@ PATH=$PATH:/usr/local/sbin/
 
 # for testing only, please don't enable this in production environments
 # as this introduce security risks
-TEST="false"
+if [ -z "$KAMCTL_TEST" ]; then
+	TEST="false"
+else
+	TEST="true"
+fi
 
 ### include config files