asuswrt-merlin.ng/release/src-rt-5.04axhnd.675x/router-sysdep.gt-axe16000/fscryptctl/input_fail.py
2022-07-27 16:38:12 -04:00

14 lines
354 B
Python
Executable file

#!/usr/bin/env python
# Exit with 1 if any input is provided. Print the input to stdout, unless an
# argument is specified. In that case, print the argument instead.
import sys
input_string = sys.stdin.read()
if input_string != "":
if len(sys.argv) >= 2:
print(sys.argv[1])
else:
sys.stdout.write(input_string)
sys.exit(1)