[modify] use dos2unix tool to change the file
This commit is contained in:
		| @@ -21,9 +21,6 @@ def usage(): | ||||
|  | ||||
|  | ||||
| def getParams(params): | ||||
|     if len(params) < 2 or len(params) > 11: | ||||
|         print('Need at least 2 parameters, and most can have 11 parameters, exiting...') | ||||
|         exit(99) | ||||
|  | ||||
|     params_dict = {'title': '', 'body': '', 'sound': '', 'icon': '', 'group': 'alert', 'copy': '', 'autocopy': '', 'badge': '', 'url': '', 'isarchive': '1', 'level': 'active'} | ||||
|     elements = ['title', 'body', 'sound', 'icon', 'group', 'copy', 'autocopy', 'badge', 'url', 'isarchive', 'level', 'ciphertxt', 'device_key'] | ||||
| @@ -38,7 +35,8 @@ def getParams(params): | ||||
|  | ||||
|  | ||||
| def main(): | ||||
|     if len(sys.argv) == 1: | ||||
|     if len(sys.argv) < 3: | ||||
|         print('Need at least 2 parameters, and most can have 11 parameters, exiting...') | ||||
|         usage() | ||||
|  | ||||
|     params = sys.argv[1:] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user