4 SCRIPTNAME
=termux-storage-get
6 echo "Usage: $SCRIPTNAME output-file"
7 echo "Request a file from the system and output it to the specified file."
12 while getopts :h option
16 ?
) echo "$SCRIPTNAME: illegal option -$OPTARG"; exit 1;
21 if [ $# -gt
1 ]; then echo "$SCRIPTNAME: too many arguments"; exit 1; fi
22 if [ $# -lt
1 ]; then echo "$SCRIPTNAME: no output file specified"; exit 1; fi
24 @TERMUX_API@ StorageGet
--es
file "`realpath "$1"`"